Matching specific HTML tags with a regex

From: Date: Thu, 11 Jan 2001 00:49:28 +0000
Subject: Matching specific HTML tags with a regex
Groups: php.general 
Request: Send a blank email to php-general+get-33849@lists.php.net to get a copy of this message
Hi folks, Seen this discussed on here a bit in the past, so I hope someone remembers and can help me sort of quickly before I go nuts, declare victory and move on to another problem :) My regular expression abilities are ... limited. This is what I'm trying to accomplish: An input buffer to a function will consist of a chunk of HTML code. This code includes the use of stylesheets, generally in the form of "<SPAN CLASS='something'>text here</SPAN>". I'd like to find a regular expression that'll match each of these occurrences within the text, thus allowing me to pull out "something" and "text here". (Why do I want to do this? To convert the style sheet into <FONT FACE> tags... its neccessary, if ugly. :\). Any help would be appreciated, thanx! Jason -- Jason Murray jasonm@melbourneit.com.au Web Design Team, Melbourne IT Fetch the comfy chair!

« previous php.general (#33849) next »