In Saxon 9 he Java XML parser, word boundaries (\b) in regular expressions are not recognized



I have the following simple regular expression:



\b\w+\b


Saxon reports the following error:



syntax error at char 2 in regular expression: Escape character 'b' not allowed


Does it mean I can't use word boundaries with Java Saxon parser? Is there an alternative free XML Java parser that has this functionality?


No comments:

Post a Comment