Regular Expressions 101

Community Patterns

matrix.to URL regex

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 - 9 months ago