PICA::Path should include a formal grammar of PICA Path expression syntax. The current implementation is:
([012.][0-9.][0-9.][A-Z@.]) # tag
(\[([0-9.]{2,3}|\d+-\d+)\])? # occurrence
(\$?([_A-Za-z0-9]+))? # subfields
(\/(\d+)?(-(\d+)?)?)? # position
And some additionals checks on occurrence and position ranges.
The syntax will be extended by conditions/subspects (#108) and x-counters (#97).
PICA::Path should include a formal grammar of PICA Path expression syntax. The current implementation is:
And some additionals checks on occurrence and position ranges.
The syntax will be extended by conditions/subspects (#108) and x-counters (#97).