When using the stubXMLMatcherAnnotation one must supply the pattern to be used for the matching with regular expressions. If you forget to write a delimiter at the beginning and the end of the pattern an E_WARNING is issued twice:
Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or
backslash in /path/to/stubbles/src/main/php/net/stubbles/xml/serializer/annotations/stubXMLMatcherAnnotation.php
on line 67
It would be more userfriendly if the annotation detects missing delimiters and tries to add them automatically to prevent the issue of this warnings.
(Notice: the pattern is used in line 50 as well.)