Regular Expressions 101

Twitter #hashtags

-1

Regular Expression
Python

r"
(\A|\s)#(\w+)
"
g

Description

Using the twitter API, take a tweet object and find & link #tags to embed in HTML

Submitted by @triplec1988 - 10 years ago