Regular Expressions 101

Library entries

All href in a tag

Vote

5

Regular Expression
pcre

/
<a.+?\s*href\s*=\s*["\']?([^"\'\s>]+)["\']?
/
gi

Description

Loading markdown...
Submitted by Miron Yanovskiy - 8 years ago