Check if string is a URL?

Intresting, I used to use VF's method IndexOf but ParkerAndKent method is more advanced thanks

Thanks, but it isn’t more advanced… we just use two functions that have different purposes but that give the same result in a case like this one :wink:

Thats what i meant with more advanced. It can be used in more complex ways, lets say for validating an email input box. That way we could prevent users from starting with “@” at the beginning. In indexOf() this cant be achieved , it only checks if “@” is available or not