Regular Expressions 101

Library entries

[php] url hard match

Vote

1

Regular Expression
pcre

/
((?:(?:https?|ftp)+(?:\:\/\/))?)+(?:(?:(?:www(?:(?:[\d]{1})?)\.|[a-z0-9-_]{1,}))+\.(?:com|me|ru|net|biz|info|fm|su|ua|to|us|[a-z]{1,5}))+(?:(?:[a-z0-9\/\?=-_.&]{1,})?)
/
ism

Description

Loading markdown...
Submitted by Redfern.89 - 7 years ago