i got a script to validate URL as input . i dont know how do use it? help me? the script is \b(https?|ftp)://[-A-Z0-9+&@#/%?=~|!:,.;]*[-A-Z0-9+&@#/%=~|]
It's a regular expression, which you could use in one of the preg_*() functions. As I'm not entirely clear what you actually want to do, I'm not sure which function you want to use, and if that regex is exactly what you want.