Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Regular
Expressions
101
Regular
Expressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(?<=https:\/\/letterboxd\.com\/)[0-9a-z-_]*\/(?=film\/.*)
/
gm
Test String
New
https://letterboxd.com/user_name/film/pokemon-the-movie-secrets-of-the-jungle/ https://letterboxd.com/user-name/film/pokemon-the-movie-secrets-of-the-jungle/ https://letterboxd.com/username/film/pokemon-the-movie-secrets-of-the-jungle/ https://letterboxd.com/user_name56/film/pokemon-the-movie-secrets-of-the-jungle/
Substitution
Processing...