Regular Expressions 101

Sponsors

Library entries

1
python

url

no description available
Submitted by oniro - 7 years ago
1
pcre

Match localizable strings

no description available
Submitted by anonymous - 7 years ago
1
pcre

Match localizable strings

no description available
Submitted by LadyDascalie - 7 years ago
1
pcre

Pro Football Weekely - Green Bay Packers

no description available
Submitted by anonymous - 7 years ago
1
pcre

HTML hyperlinks

Match all Hyperlinks
Submitted by anonymous - 7 years ago
1
pcre

lesson 4

no description available
Submitted by anonymous - 7 years ago
1
pcre

Space replacement

no description available
Submitted by anonymous - 7 years ago
1
python

BASE Amplicon filename parsing

BASE Amplicon parsing
Submitted by sthysel - 7 years ago
1
pcre

Parse Youtube links

no description available
Submitted by anonymous - 7 years ago
1
pcre

Get 3 segment nz table name

no description available
Submitted by vwei02 - 7 years ago
1
pcre

Parse faxmail log

no description available
Submitted by Michael Blair - 7 years ago
1
python

Port validator

Validates port numbers from 1 to 65535
Submitted by Agustín Bouillet - 7 years ago
1
pcre

Jaba

no description available
Submitted by anonymous - 7 years ago

Parse URLs

Vote

1

Regular Expression
python

'''
(?#First, match the protocol) (?:https?|ftp):// (?#Next, check for optional username and/or password) (?#Note: The following two char classes are functionally equivalent) (?:[\x21-\x39\x3b-\x3f\x41-\x7e]+(?::[!-9;-?A-~]+)?@)? (?#Next, let's match the domain [with support for Punycode ]) (?:xn--[0-9a-z]+|[0-9A-Za-z_-]+\.)*(?:xn--[0-9a-z]+|[0-9A-Za-z-]+)\.(?:xn--[0-9a-z]+|[0-9A-Za-z]{2,10}) (?#Let's match on optional port) (?::(?:6553[0-5]|655[0-2]\d|65[0-4]\d{2}|6[0-4]\d{3}|[1-5]\d{4}|[1-9]\d{1,3}|\d))? (?#Next, let's match on the path) (?:/[\x21\x22\x24\x25\x27-x2e\x30-\x3b\x3e\x40-\x5b\x5d-\x7e]*)* (?#Next, let's match on an anchor) (?:\#[\x21\x22\x24\x25\x27-x2e\x30-\x3b\x3e\x40-\x5b\x5d-\x7e]*)? (?#Last, but not least, we match on URI params) (?:\?[\x21\x22\x24\x25\x27-\x2e\x30-\x3b\x40-\x5b\x5d-\x7e]+=[\x21\x22\x24\x25\x27-\x2e\x30-\x3b\x40-\x5b\x5d-\x7e]*)? (?#Additional params) (?:&[\x21\x22\x24\x25\x27-\x2e\x30-\x3b\x40-\x5b\x5d-\x7e]+=[\x21\x22\x24\x25\x27-\x2e\x30-\x3b\x40-\x5b\x5d-\x7e]*)*
'''
gmxi

Description

Loading markdown...
Submitted by D. Torres - a year ago