Skip to content

Instantly share code, notes, and snippets.

@DaveEveritt
Created July 25, 2010 09:31

Revisions

  1. DaveEveritt revised this gist Jul 25, 2010. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.mkd
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,12 @@
    #### Simple-as-possible regular expression to fix unquoted html/xhtml width/height attributes:
    ### Simple-as-possible regular expression to fix unquoted html/xhtml width/height attributes:

    find:
    `(width|height)=([\d]+)`

    replace:
    `$1="$2"`

    ##### Example result:
    #### Example result:

    find:
    `<img src="myimage.png" height=20 width=200 />`
  2. DaveEveritt revised this gist Jul 25, 2010. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.mkd
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@ find:
    replace:
    `$1="$2"`

    Example result:
    ##### Example result:

    find:
    `<img src="myimage.png" height=20 width=200 />`
  3. DaveEveritt revised this gist Jul 25, 2010. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.mkd
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    #### Simple-as-possible regular expression to fix unquoted html/xhtml width or height attributes:
    #### Simple-as-possible regular expression to fix unquoted html/xhtml width/height attributes:

    find:
    `(width|height)=([\d]+)`
  4. DaveEveritt revised this gist Jul 25, 2010. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.mkd
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Simple-as-possible regular expression to fix unquoted html/xhtml width or height attributes:
    #### Simple-as-possible regular expression to fix unquoted html/xhtml width or height attributes:

    find:
    `(width|height)=([\d]+)`
  5. DaveEveritt revised this gist Jul 25, 2010. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.mkd
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Regular expression to fix unquoted html/xhtml width or height attributes:
    Simple-as-possible regular expression to fix unquoted html/xhtml width or height attributes:

    find:
    `(width|height)=([\d]+)`
  6. DaveEveritt created this gist Jul 25, 2010.
    15 changes: 15 additions & 0 deletions gistfile1.mkd
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    Regular expression to fix unquoted html/xhtml width or height attributes:

    find:
    `(width|height)=([\d]+)`

    replace:
    `$1="$2"`

    Example result:

    find:
    `<img src="myimage.png" height=20 width=200 />`

    replace:
    `<img src="myimage.png" height="20" width="200" />`