Regular Expressions 101

Community Patterns

get all title value && all the text in <a/>

1

Regular Expression
PCRE (PHP <7.3)

/
(?=<[^<]*[\s]+title="([^"]*)")|<\s*a\s+[^<]*>([^<]*)([^<]*)
/
g

Description

no description available

Submitted by Kerosene - 10 years ago