Skip to content

Instantly share code, notes, and snippets.

@malitta
Created October 16, 2012 10:51
Show Gist options
  • Save malitta/3898644 to your computer and use it in GitHub Desktop.
Save malitta/3898644 to your computer and use it in GitHub Desktop.
Regular Expression to remove 'contenteditable' from an element

RegExp: /contenteditable(([ ]*)?\=?([ ]*)?"(.*)")?(\=([a-z0-9]*)\s)?/gi
Pattern: contenteditable(([ ]*)?\=?([ ]*)?"(.*)")?(\=([a-z0-9]*)\s)?

http://regexr.com?32fon

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