Skip to content

Instantly share code, notes, and snippets.

@jimhigson
Last active Dec 31, 2015
Embed
What would you like to do?
regex for cleaning up inkscape markup - most SVGs should display the same if matches are removed.
// this regular expression detects most of the Inkscape markup in an SVG which can be safely removed for delivery to a browser
(style|(inkscape|sodipodi):[^=]+)="[^"]*"|id="(path|rect|layer|defs|g)[\d-]+"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment