Regular Expressions 101

Library entries

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

Vote

1

Regular Expression
pcre

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

Description

Loading markdown...
Submitted by Kerosene - 7 years ago