Regex to Remove HTML Tags Home

Certifications


Cisco


Downloads


IP


PC


Protocols


RemoteAccess


Security


Telecommunications


Tools


Unix


Web






Regex to remove HTML Tags

A friend of mine asked for a regex to remove all HTML tags from a webpage and to leave everything else, including what's between the tags and this is the regular expresion that I came up with for him:

s/<[a-zA-Z\/][^>]*>//g

This page was created in 0.12769 seconds
Comments and Questions
Last modified: February 12 2005.