Matching a string to replace tag attributes
Posted: Mon Feb 12, 2007 11:02 am
Hello again 
I'm totally stumped by regex... I'm having trouble solving this and hope to learn some basics from whatever the outcome of this thread is.
Could someone tell me how to use regex to find a string such as this:
(where the number is, obviously, variable) so that I can replace it with a width attribute instead (I'm converting tables to divs)
All help gratefully received, as would be a link to a great regex tutorial (apart form the php manual, which I find too confusing for this!)
Cheers!
I'm totally stumped by regex... I'm having trouble solving this and hope to learn some basics from whatever the outcome of this thread is.
Could someone tell me how to use regex to find a string such as this:
Code: Select all
colspan="2"All help gratefully received, as would be a link to a great regex tutorial (apart form the php manual, which I find too confusing for this!)
Cheers!