Regular Expressions 101

Library entries

Get stuff inside <a> tags

Vote

5

Regular Expression
pcre

/
(?:startString|\G)[^<>]*+\K(?:<a>([^<>]++)</a>)(?=(?:(?!startString).)*?endString)
/
gsi

Description

Loading markdown...
Submitted by Jerry - 8 years ago