View Single Post
Old 05-29-2009, 09:10 AM   #6 (permalink)
kmote
 

Join Date: Jul 2005

Location: England

Posts: 2,167

kmote has a spectacular aura aboutkmote has a spectacular aura about

Default Re: Regular expression help

You could use the * to match style="" if you like. Having thought about it you don't really get spaces in attributes but in the style attribute you do get : and ; which my fist expression will not catch.
Try style="[^"]*" (if you want style="" to be caught) or style="[^"]+" (if you don't) instead. These ones will catch spaces but they will also catch more than just alphanumeric words as well.
__________________
MSI P43 Neo|Enermax Pro82+ 425W|E5200|silent 8500GT|250GB Samsung spinpoint F1|Samsung SATA DVD RW|4GB Corsair|Antec SOLO|openSUSE11


There are in order of increasing severity: lies, darn lies, statistics, and computer benchmarks. - diskinfo man page
kmote is offline