Regular Expressions 101

Community Patterns

Title to Tags tag extraction

0

Regular Expression
PCRE (PHP <7.3)

/
[\p{L}\p{N}-_'.@]+|"\w+"
/
gm

Description

This is the regex I'm currently using to extract terms from a post title string.

Submitted by anonymous - 5 years ago