Regular Expressions 101

Community Patterns

Your search did not match anything

Community Library Entry

0

Regular Expression
Python

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

Description

Regex to detect and extract detail from matrix.to

Submitted by anonymous - 2 years ago