PHP / RegEx - Convert URLs to links by detecting .com/.net/.org/.edu etc
问题 I know there have been many questions asking for help converting URLs to clickable links in strings, but I haven't found quite what I'm looking for. I want to be able to match any of the following examples and turn them into clickable links: http://www.domain.com https://www.domain.net http://subdomain.domain.org www.domain.com/folder subdomain.domain.net subdomain.domain.edu/folder/subfolder domain.net domain.com/folder I do not want to match random.stuff.separated.with.periods. EDIT: Please