Regular Expressions 101

Community Patterns

0

Extract structure from dates

Python
1-12 / 2022
Submitted by anonymous - 5 months ago
0

date description amount

PCRE2 (PHP >=7.3)
-
Submitted by Me - 5 months ago

Facebook: parse page name from url

0

Regular Expression
Python

r"
(?i)^(?:.+)?(?:facebook|fb).(?:[a-z\.]{2,6})(/pages|/pg|/group[s])?/([^/]+)(?:/|$)
"
g

Description

Loading markdown...
Submitted by cx - 5 years ago