Click to See Complete Forum and Search --> : Simple RegEx help needed


supernewbie
01-28-2006, 12:25 PM
Hi all,

I have an string containing html in which I want to replace all width = "xx%" with a corresponding width = "yypx" (pixels).
So that width = "100%" becomes width = "800px", width = "75%" becomes width = "600px" etc.

How can I achieve this with RegEx? Could you please also post the pattern that I need to use.

(Regex is not my cup of tea....really :-p)

Thanks.