Skip to content

Instantly share code, notes, and snippets.

@mdlincoln
Last active December 21, 2015 01:48
Show Gist options
  • Save mdlincoln/6230222 to your computer and use it in GitHub Desktop.
Save mdlincoln/6230222 to your computer and use it in GitHub Desktop.
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