Regular Expressions 101

Sponsors

Library entries

0
pcre

webongo

webongo test
Submitted by webongo - 8 years ago
1
pcre

search mailadress

no description available
Submitted by anonymous - 8 years ago
-2
javascript

valid windows file name

no description available
Submitted by Mitacha - 8 years ago
-2
pcre

get all href=()

no description available
Submitted by artyom lisovskij - 8 years ago
1
pcre

testmmoj

no description available
Submitted by anonymous - 8 years ago
-2
python

eee

no description available
Submitted by anonymous - 8 years ago
2
pcre

find numeric groups in strings

no description available
Submitted by Vovan - 8 years ago

A 'Bulletproof' URL Regular Expression Parser

Vote

0

Regular Expression
pcre

/
((?<SCHEME>(?:https?))(?<HOSTNAME>\:\/\/(?:www.|[a-zA-Z.]+)[a-zA-Z0-9\-\.]+\.(?:biz|ca|com|edu|gov|info|me|mil|museum|name|net|org|uk|ru|us))?(?<PORT>\:[0-9][0-9]{0,4}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])?(?<PATH>[a-zA-Z0-9\-\.\/]+)?(?<QUERY>(?:\?$|[a-zA-Z0-9\.\,\;\?\'\\\+&%\$\=~_\-\*]+))?(?<FRAGMENT>#[a-zA-Z0-9\-\.]+)?)
/
gm

Description

Loading markdown...
Submitted by anonymous - 2 years ago