Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save jeremypage/b685058025e82a13e07c46e99837d890 to your computer and use it in GitHub Desktop.

Select an option

Save jeremypage/b685058025e82a13e07c46e99837d890 to your computer and use it in GitHub Desktop.

Revisions

  1. jeremypage revised this gist Jul 24, 2020. 2 changed files with 3 additions and 4 deletions.
    3 changes: 3 additions & 0 deletions vs-code-strip-attributes-from-html-tags.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    Search for: ```<(table|tr|td|p|div|span)[\S\s]*?\n?>```

    Replace with: ```<$1>```
    4 changes: 0 additions & 4 deletions vs-code-strip-attributes-from-html-tags.txt
    Original file line number Diff line number Diff line change
    @@ -1,4 +0,0 @@
    # Couldn't figure out how to do /s or get VS Code to search over newlines so came up with this convoluted mess '[\S\s]*?\n?' that matches all characters plus newlines

    Search for: <(table|tr|td|p|div|span)[\S\s]*?\n?>
    Replace with: <$1>
  2. @chriskempson chriskempson revised this gist Jul 3, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion vs-code-strip-attributes-from-html-tags.txt
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Couldn't figure out how to do /s or get VS Code to search over newlines so came up with this convoluted mess '[\S\s]*?\n?'
    # Couldn't figure out how to do /s or get VS Code to search over newlines so came up with this convoluted mess '[\S\s]*?\n?' that matches all characters plus newlines

    Search for: <(table|tr|td|p|div|span)[\S\s]*?\n?>
    Replace with: <$1>
  3. @chriskempson chriskempson renamed this gist Jul 3, 2019. 1 changed file with 1 addition and 0 deletions.
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    # Couldn't figure out how to do /s or get VS Code to search over newlines so came up with this convoluted mess '[\S\s]*?\n?'

    Search for: <(table|tr|td|p|div|span)[\S\s]*?\n?>
    Replace with: <$1>
  4. @chriskempson chriskempson created this gist Jul 3, 2019.
    3 changes: 3 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    # Couldn't figure out how to do /s or get VS Code to search over newlines so came up with this convoluted mess '[\S\s]*?\n?'
    Search for: <(table|tr|td|p|div|span)[\S\s]*?\n?>
    Replace with: <$1>