Jump to content

Regex to match EVERYTHING between 2 tags


Brandon_R

Recommended Posts

Hello guys im looking for a regular expression that would match everything between 2 tags and replace it with nothing.

 

Something like

 

<!-- open tag --> <a href="http://www.phpfreaks.com>PHP Freaks</a> <!-- / open tag -->

 

I need an expression that would match ANYTHING (even whitespaces etc) that is between the open tag (or any tag i specify).

Thank You,

 

Brandon_R

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.