Skip to content

Instantly share code, notes, and snippets.

@mdlincoln
Last active Dec 21, 2015
Embed
What would you like to do?
This is an attempt to define a regular expression that will capture the various particles of an Iconclass notation in its match groups. The Iconclass schema is described here: http://www.iconclass.nl/contents-of-iconclass
(\d{1,2})([A-Z]{1,2})?(\d{1,5})?(\(\w*\))?(\d{1,2})?(\(\+\d\))?
(((((((((((((\d)\d?)[A-Z]?)[A-Z]?)\d?)\d?)\d?)\d?)\d?)(\(\w*\))?)\d?)\d?)(\(\+\d+\))?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment