Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Find Reddit Threads
Open Workspace
Python
Match
Created 2015-03-12 09:23
12
Regular Expression
r"
(
^
https
?
://
)?(
\w
+
)?
\.
?
(
reddit
\.
com/
|
redd
\.
it/
)(
r/
\w
+
/
)?(
comments/
)?(
\w
+
)
"
gm
Description
Simply searches for the thread-id in any kind of valid reddit-URL.
Submitted by
Mio