Regular Expressions 101

Community Patterns

looking for a word of 4 letter

1

Regular Expression
PCRE (PHP <7.3)

/
(?<![A-z])[A-z]{4}(?![A-z])
/
gm

Description

look for a word of 4 letter with the look behind and look ahead

Submitted by balzrog & torb500 - 8 years ago