Regular Expressions 101

Community Patterns

Extract Twitter Hashtags

0

Regular Expression
PCRE (PHP <7.3)

/
(entities\"\:\{\"hashtags\"\:\[\{\"text\"\:\"(?<hashtag>[^\"]*))
/

Description

This regular expression extracts hashtags from the raw data.

Submitted by anonymous - 7 years ago