Regular Expressions 101

Sponsors

Library entries

1
python

Find join

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

Remove console.log() from javascript

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

Two digit search.

Trying to understand the two digit lookup.
Submitted by mburke05 - 7 years ago
1
python

ISIS Checking

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

Match Smalltalk method definition

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

numbahs

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

Infobox of Wiki

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

segment path

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

832821

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

testing regex to indicate punctuation

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

832821(1)

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

test

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

แปลง pdf

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

logical operators

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

ddd

no description available
Submitted by anonymous - 7 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