Hi people

What is the most efficient way to check if a URL is in a string? i have a feeling it may be a regex. Can anyone help me?

Thanks in advance