I’m trying to find a link within a string (paragraph)(stored as a ‘text’ type in MYQSL). What would be the best approach at doing this?
For example (string from database):
$string = "Visit here: https://example.com to find more information";
I’m trying to hyperlink "https://example.com"
Thanks in advance.
>Solution :
Using a regular expression would be your best option.
Check out the answer on this thread.