When manipulating working with data such as HTML/XML, it is better to use a proper parser rather than a regex. There are various threads here on this topic, such as XML parsing vs Regular expressions, I'm sure using super search you can find many points of view on this subject.
Update: changed "manipulating" to "working with".
Cheers
Martin
|