I worked out this regex and its working close but only one more problem in that, it matches any word with more than one period (.)
For example: stuf… (got matched)
How do I limit the period to “Only allow 1 period per set of bracket” in the regex?
'#((\w+://)?(\w+\.)([a-z0-9\-/.?=_&%])+)#i'
Try this:
This requires a non-period-char after each period.
But I would recommend something like this: