How to convert a capturing group to a non-capturing group in this regex? – PHP
I am trying to replace all urls in the text with hyperlink using regular expression. The urls must start with either http:// or https://. And they must contain some TLD, e.g. .com, .org, or .co.uk etc. Below is my regex…