Regular Expressions 101

Community Patterns

3

iframe src parser

Python
Get iframe src
Submitted by Sumeet Fefar - 8 years ago
3

Email

Python
Python
Submitted by anonymous - 7 years ago
3

example

PCRE2 (PHP >=7.3)
example
Submitted by anonymous - 2 years ago
7

CSS Import

Python
no description available
Submitted by anonymous - 10 years ago
3

prices in nis

Python
no description available
Submitted by molaxx - 8 years ago
3

date time

Python
1/Jul/2013 03:27:12
Submitted by himel - 10 years ago

Between two strings

-2

Regular Expression
Python

r"
# 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 - 8 years ago