Regular Expressions 101

Community Patterns

Community Library Entry

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 - 6 years ago