added support of regular expressions in StructuredElemStack.match