Clean Illustrator FXG Files

When saving Illustrator Files as FXG there is an option to “Save Illustrator Private Data”. Even with this option unchecked I find the resulting FXG file has more data in it I need for use in a Flex project.

I have a quick regular expression to remove most of the unnecessary namespaces and data from the file; I figured someone else might find it useful.

(ai:|ATE:|flm:|d:)(\w*)(=")([^"]*)(")( )?

This entry was posted in Design, Development. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.