2690

A regular expression to remove the width and height in html

A regular expression to remove the width and height in html

2012.11.7

If you include width and height in html, the processing speed goes up, so it’s not a bad idea to include them. I think there are times when I think, “I still don’t want to include it”. So, note the regular expression to remove the width and height using a regular expression.

Introduction.

There can be a lot of patterns in the placement of strings. So I can’t say it’s absolutely perfect, but I’m assuming it’s generally OK. Please do so at your own risk.

Confirmation Environment

Regular Expressions

Enter the following in the search word section.
Depending on the software, regular expressions may not be checked, so make sure you check the box for Make sure it’s in there.

 ( width| height)=[0-9]*

I use it in my ATOK word registry because it’s too much trouble for me to type it in every time.

Conversely, if you want to add width and height

This is limited to Dreamweaver, but you can use the “Dreamweaver Image Width and Height Reset command ” Golden Bear Design “ is easy to put in and run.