Regular Expressions 101

Community Patterns

URL Catcher Regexp

0

Regular Expression
PCRE (PHP <7.3)

/
<a\s*href="([^"]*)"[^>]*>(.*)<\/a>
/
g

Description

Espressione regolare per catturare un URL in un testo

Submitted by Samuel Panicucci - 7 years ago