Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

One way of doing this is dividing the incoming username into groups by using this expression:

...

(.*)(_)(.*)(

...

รง@)(.*)

Here:

  • the parentheses are creating the groups

  • period "." indicates any symbol

  • star "*" means from 0 to many occurrences of the preceding symbol

...

When using just-in-time provisioning and regular expressions for username lookup, you may want to control what case usernames get. By using \L (lowercase) and \U (uppercase) in front of $1 and other replacements (see above examples), you may instruct what casing case the username for the newly created user will be.

So for example, if you want the domain to have uppercase for created usernames, use the expression:

(.)@(.)

and then instruct all after @ symbol to be uppercase with this replacement:

$1@\U$2

See more details on the language of regular expressions here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions

...