Search code examples
htmlregexsublimetext3

Regex Find/Replace Width and Height


I'm trying to run a find/replace on a series of files to remove the width="..." and height="..." definitions in SublimeText 3.

I've tried width="*" height="*" but I'm not getting any luck.

Any suggestions?


Solution

  • You're matching " "zero or more" times by preceding it with the * operator. You can either use a non-greedy match in between ".*?" or I'd prefer a negated character class "[^"]*"