Regular Expressions 101

Community Patterns

Find encoded "&" and extract parts

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(.*)\\u0026(.*)
/
gm

Description

Gets the parts of a url either side of an encoded "&" (as \u0026).

Submitted by anonymous - a year ago