Regular Expressions 101

Sponsors

Library entries

0
python

data(yyyy-mm-dd)

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

ID15

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

password

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

email

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

Java Map output to JSON String

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

Timestamp

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

Apache log2

Read regular expression for log
Submitted by anonymous - 6 years ago
0
python

Readstat in Brackets

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

uRD Accept

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

uWR Accept

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

release version parser

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

crontab entry for hour

Example 0,2,3,5-6,9-23/2
Submitted by anonymous - 6 years ago
0
python

get date from french text

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