0 votes

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

image.png

by (910 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 (272k 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 (160 points)
0 votes
1 answer

Or is there another solution to solve this?

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

I am trying to use a property pattern to prevent email forwarding to accounts in other domains managed by Adaxes. Here is my regex: ^([^,]+,)+(DC=domain,DC=local) ... 't working? Is Adaxes using some other value before resolving the DN? Thanks in advance! Leah

asked May 9, 2019 by loliver (120 points)
3,347 questions
3,048 answers
7,788 comments
545,035 users