Regular Expressions 101

Community Patterns

Append _if to archive.org's links

1

Regular Expression
PCRE2 (PHP >=7.3)

/
((https:\/\/web.archive.org\/web\/\d*)(\/https?:\/\/?(www\.)?.*))
/
gm

Description

A regex to remove the iframe from archive.org in archived sites' links.

Submitted by anonymous - 3 years ago