Regular Expressions 101

Community Patterns

redirectimage

0

Regular Expression
PCRE (PHP <7.3)

/
(<a .*?)(href="|\')(http:\/\/oceanexplorer.noaa.gov\/redirectimage.php\?url=|\/redirectimage.php\?url=|\/redirectimage.php\?url=)([.\s\S]*?)(<\/a>)
/
g

Description

Rid OceanExplorer of php script with the redirectimage flavor

Submitted by anonymous - 6 years ago