Regular Expressions 101

Sponsors

Library entries

0
python

apt list Version 2

no description available
Submitted by anonymous - 6 years ago
0
python

Facebook embedded video

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

WoW Screenshot

If you need to rename it
Submitted by anonymous - 6 years ago
1
python

MML

no description available
Submitted by Aron - 6 years ago
1
python

capital of

no description available
Submitted by Shebin - 6 years ago
1
python

Lib

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

.*(\d+).* Selects last number

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

pwl repo titles

no description available
Submitted by Devin McGloin - 6 years ago
1
python

URL matched

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

MAC ADDRESS

no description available
Submitted by abaumann - 6 years ago
1
python

Cross Reference Regex for SFM

SFM 2.4
Submitted by anonymous - 6 years ago
1
python

Footnote Regex for SFM

no description available
Submitted by anonymous - 6 years ago

Verbose Python IP4 Address

Vote

1

Regular Expression
python

"
(?:\s|^) # Start of string or word boundary ( # Capture Group (?: # Non-Capture Group for X. (?: # Nested NCG for 0..255 (?:\d){1,2}| # Allow any single digit or any pair of digits or (?:1\d{2})| # 3 Digits starting with 1 or (?:2[0-4]\d)| # 3 Digists starting with 20..24 or (?:25[0-5]) # 250..255 ) # this should allow X=0..255 in the NCG \. # Must be followed by a literal . ){3} # X. Must repeat exactly 3 times (?: # NCG for final 0..255 (?:\d{1,2})| # Allow any single digit or any pair of digits or (?:1\d{2})| # 3 Digits starting with 1 or (?:2[0-4]\d)| # 3 digits starting 20..24 or (?:25[0-5]) # 250.255 ) # End of final 0.255 ) # End of capture group (?:\s|$) # Must be followed by EOS or wspace
"
gx

Description

Loading markdown...
Submitted by Steve (Gadget) Barnes - 7 years ago