Regular Expressions 101

Community Patterns

Community Library Entry

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