The regexp syntax needs to be specified. Since it's only for matching type names, we can officially support only the common parts of str and pcre: *, +, ?, [...] and that's it. Grouping (parens) and alternatives (vertical bar) use differents syntaxes between str and pcre. If you think they're useful, the chosen syntax should be specified.