I have this Javascript pattern
^(\b[A-Z]\w*(\s|\.)*)+$
I tried using it on my XML Schema
<xs:pattern value="^(\b[A-Z][a-z]*(\s|\.)*)+$">
But when I validate I received an error saying InvalidRegex: Pattern value '^(\b[A-Z][a-z](\s|.))+$' is not a valid regular expression. The reported error was: 'This expression is not supported in the current option setting.'.
Is there a way for my Javascript pattern to work on my XML Schema pattern?