With one regexp or with piece of code containing regexp? What exactly is the format of idrefs attribute (only letters a-z)? What is the format of value inside markers? Is it <digit><letter>,<digit><letter> (2 data strings) or <digit><letter>,<digit><letter>,... (2 or more) or maybe <any char><any char>,...?