Skip to content

Instantly share code, notes, and snippets.

@alexserver
Created December 23, 2014 23:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexserver/0d5fd7fa3a1f3f061f02 to your computer and use it in GitHub Desktop.
Save alexserver/0d5fd7fa3a1f3f061f02 to your computer and use it in GitHub Desktop.
settings user regReplace
{
"replacements": {
// Example replacements
"google_docs_remove_html": {
"find": "(.|\\n)*<body((?!>).)*>(((?!<\\/body>).|\\n)+)<\\/body>(.|\\n)*",
"replace": "\\3",
"greedy": false,
"case": false
},
"google_docs_remove_ractive_rows": {
"find": "<tr((?!>).)+>((?!(</tr>)|(\\{\\{((?!\\{\\{).)+\\}\\})).|\\n)+(\\{\\{(\\#|\\^)((?!\\{\\{).)+\\}\\}|\\{\\{\\/((?!\\{\\{).)+\\}\\})((?!(</tr>)|(\\{\\{((?!\\{\\{).)+\\}\\})).|\\n)+</tr>",
"replace": "\\6",
"greedy": true,
"case": false
},
"unescape_html_tags_for_markup_open": {
"find": "&lt;\\$",
"replace": "<",
"greedy": true,
"case": false
},
"unescape_html_tags_for_markup_close": {
"find": "\\$&gt;",
"replace": ">",
"greedy": true,
"case": false
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment