We need to allow the German umlauts for the user to enter as part of user name. While we add
^[A-Za-z0-9äöüÄÖÜß-.]+(?:[._-][A-Za-z0-9äöüÄÖÜß-.]+)*$
This is not working as expected and we just get an error as "Facing Technical difficulty"
Sitecore Stack Exchange is a question and answer site for developers and end users of the Sitecore CMS and multichannel marketing software. It only takes a minute to sign up.
Sign up to join this communityI think that your regular expression is not correct. "-" sign in regular expressions is used to match any from range of characters. e.g.: A-Z
or a-z
. You have range that is not closed: ß-
I removed "-" sign and it started to work for me.
^[A-Za-z0-9äöüÄÖÜß.]+(?:[._-][A-Za-z0-9äöüÄÖÜß.]+)*$
Update following comment of @Marek Musielak. It seems that under -.
@PVM have meant either .
or -
characters. In regular expression these characters should be escaped:
^[A-Za-z0-9äöüÄÖÜß\-\.]+(?:[._-][A-Za-z0-9äöüÄÖÜß\-\.]+)*$
\`
character before -
, right? -
should not be removed?
/^[ A-Za-z\-_.\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF.~\\-]*$/
Please try to use this one.
Try this one.
^[ A-Za-z\u00C0-\u017F.~\\-]*$
^[A-Za-z0-9äöüÄÖÜß-.]+
...?