views:

85

answers:

1

I want to be able to replace style="STUFF"

I keep thinking that this is the correct REGEX:

style=(")(?!")*(")

But for some reason that won't match.

Any ideas?

A: 

Try style="(.*?)" instead.

Amber
@Dav, you nailed it. @Eric Hendrickson, the `?` after the `.*` makes the `*` "ungreedy". Meaning, it will match to the nearest closing ``.
macek