Regular Expressions 101

Community Patterns

Find and replace strings with hypens

0

Regular Expression
PCRE (PHP <7.3)

/
(\w+(-\w+)+)
/
gmuix

Description

Find and replace string which contains hypens "-"

Submitted by yuks - 9 years ago