Regular Expressions 101

Sponsors

Library entries

10
python

entity

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

domain - host

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

CSS Import

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

repeat group match

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

Find consecutive duplicate words

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

Form Tag

Form Tag
Submitted by Jay Patel - 6 years ago
5
python

psswd

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

Match Only Text

no description available
Submitted by anonymous - 6 years ago

Between two strings

Vote

-2

Regular Expression
python

"
# Keys are pretty much "any text before the '=' symbol" (?P<key>[^=]+) # Match the '=' symbol = (?P<value> # Lazy match .*? # Look-ahead (don't move the "regex cursor", just "peek forward") (?= # Match a '_' that has no other '_' between it and the '=' character, or... _(?=[^_=\n]+=) | # ... or the end of the line $ ) ) # Actually "consume" the '_' character if it exists (or just match the end-of-line) (?:_|$)
"
gmx

Description

Loading markdown...
Submitted by OnlineCop - 7 years ago