Regular Expressions 101

Community Patterns

Subreddit finder r/regex

1

Regular Expression
Python

r"
\br/(..*?\b)
"
g

Description

Finds the names of subreddits in a text. Group 1 is the subreddit name.

Submitted by CoderGreensparrow - 3 years ago