RegEx to Find all HTML attributes

The regex below includes backreferences which allow you to strip attributes by replacing with: <$1>
<([^>\s]*)\s?([^>]*)>
Posted by
Snippet Viewed 1778 times.

Share your RegEx code snippets:

  • Get some recognition & a link back to your site.
  • Create your own code library.
  • Help your fellow developers, as they have helped you.

 

Submit | Browse

Most Recent regex snippets

Most Viewed