Regular Expressions 101

Community Patterns

1

loyal

PCRE2 (PHP >=7.3)
loyal
Submitted by anonymous - 2 days ago
1

named capture

PCRE2 (PHP >=7.3)
simple named capture
Submitted by Gene - 2 days ago
1

extract url

PCRE2 (PHP >=7.3)
extract url
Submitted by anonymous - 15 days ago

Equation matching (without equal)

4

Regular Expression
Python

r"
(?:^\s*([+-])?|\s*(?<![+-])([+-]))\s*(?:(\d+(?:\.\d*)?)\s*\*)?\s*(?<![+-])([+-])?(\d+(?:\.\d*)?)?([xX])?(?:\^(\d+))?\s*
"
g

Description

Loading markdown...
Submitted by Kerosene2000 - 9 years ago