Regular Expressions 101

Community Patterns

Community Library Entry

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