Skip to content

Instantly share code, notes, and snippets.

@ava-cassiopeia
Last active August 29, 2016 19:03
Show Gist options
  • Save ava-cassiopeia/9dd9a8de21be86bbf83a553bc7822a23 to your computer and use it in GitHub Desktop.
Save ava-cassiopeia/9dd9a8de21be86bbf83a553bc7822a23 to your computer and use it in GitHub Desktop.
Regular expression to find all inline width stylings in a piece of source code.
[<].*style=["'][a-zA-Z0-9 \:\-;]*width[: ]*[0-9]*px[a-zA-Z0-9 \:\-;]*["'].*[>]
@ava-cassiopeia
Copy link
Author

You can swap the "width" text segment for "height" to search for height instead, also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment