0 votes

Hi, how can I change regex match to case sensitive in Custom Command conditions?

image.png

by (960 points)
0

In my initial question it should be: 'to be case sensitive', sorry.

It doesn't matter if I use [a-z]+ or [A-Z]+ in regex pattern, but it should. And I need to recognize if the letters in parameter are capital or not..

Live example is screenshot from my initial question.

1 Answer

0 votes
by (289k points)
selected by
Best answer

Hello,

For the condition to be met when the parameter value contains only uppercase letters, you need to use the following regular expression: (?-i)^[A-Z]*$

For lower case: (?-i)^[a-z]*$

For the condition to be met when the parameter value starts with a single capital letter followed by lowercase letters, use the following regular expression: (?-i)^[A-Z]{1}[a-z]*$

Related questions

0 votes
0 answers

When the UPN being created is the same as an existing one except for the case. For instance, the new UPN is sally.fields but there's an existing Sally.Fields. The ... but then fails to create the AD account indicating that the UPN is not unique forestwide.

asked Jul 13, 2022 by sandramnc (870 points)
0 votes
1 answer

Greetings. When I create the parameters to make a business rule that looks for users whose Email Proxy Adresses does not contain 'SMTP:%userPrincipalName%', it still generates profiles ... and primary SMTP address don't match. Version is 2023 How rule is set

asked Dec 19, 2022 by MShep (80 points)
0 votes
1 answer

My situation is we give user's mailbox delagation without automapping somewhat randomly so in the web ui form we would like them to be able to select ad users in the input field

asked Jan 18, 2022 by Keonip (180 points)
0 votes
1 answer

Or is there another solution to solve this?

asked Sep 15, 2022 by boris (530 points)
0 votes
1 answer

Is it possible to use Regex to force a edit box parameter value to a specific format? Forcing a user to input an alphanumeric as (###) ###-####

asked 3 days ago by msheppard (470 points)
3,552 questions
3,242 answers
8,243 comments
547,828 users