Regular Expressions 101

Community Library Entry

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