Regular Expressions 101

Community Patterns

Shorten Names: Use the positive lookahead ?= to match groups of that represent last names and first letters of the first name.

0

Regular Expression
PCRE (PHP <7.3)

/
(?=.*MONTIEL)(?=.*D.+?(\s|,))(?=.*P.+?(\s|,))
/
g

Description

no description available

Submitted by mglezsauri@hotmail.com - 7 years ago