Regular Expressions 101

Community Patterns

1

emoji-test.txt

Python
emoji-test.txt
Submitted by anonymous - 6 months ago

matrix.to URL regex

0

Regular Expression
Python

r"
(http(s)?://)?matrix\.to/#/(?P<room_id>[^/]+)(/(?P<event_id>[^/?&#]+))?(?P<qs>([&?](via=[^&]+))*)?
"
gm

Description

Loading markdown...
Submitted by anonymous - 7 months ago