Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(?<=\:)(.*?)(?=\;)
/
g

Description

This matches content between two characters

ie. height: 400px;

matches between : and ;

Submitted by anonymous - 7 years ago