Regular Expressions 101

Community Patterns

Match value between << >>

1

Regular Expression
PCRE (PHP <7.3)

/
(?<=<<)(.*?)(?=>>)
/

Description

Match any value between two less than and two greater than symbols.

Submitted by Adam Mills - 8 years ago