Regular Expressions 101

Twitter #hashtags

Open Workspace
  • Python
  • Substitution
-1

Regular Expression

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