Regular Expressions 101

Community Patterns

Find word in sentense

1

Regular Expression
PCRE (PHP <7.3)

/
(?i)(?:(?<=^|\s)(?=\S)|(?<=\S|^)(?=\s)){0}(?:(?<=\S)(?=\s|$)|(?<=\s)(?=\S|$))
/

Description

Find the word in sentense

Submitted by mvaluyko - 8 years ago