URL's have a lot of varient, meaning you have to choose which to match and which not to to some extent, here's an example expression:
[(http(s)?):\/\/(www\.)?a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b(?:[-a-zA-Z0-9@:%_\+.~#?&//=]*)
Okay, great! But how do I use it in PHP??
Обсуждают сегодня