Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(a[ \t\n]*href=")([A-z0-9:\/\-+\.%_\(\)?&]*)(")
/
gm

Description

I used this to find and replace links in a large html file. It worked in the VSCode regex find and replace.

Submitted by anonymous - 4 years ago