cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
alongcot
Nintex Newbie

How to use a case-insensitive modifier in a textbox regular expression?

Jump to solution

I'd like to use the case-insensitive modifier (/i) in the regular expression, under Validation, for a single line textbox in a form.

For example, if I were attempting to validate a URL that begins with http://...  I want to allow these variations:

http://

hTtP://

HTtp://

and so on.  I realize that I can accomplish this with brackets, as in [Hh][Tt][Tt][Pp]://, but it gets more cumbersome as the pattern match gets longer.

Adding the modifier to the end of the regex, like I would in Javascript, breaks it.  The only hits I have found while searching are about setting the Ignore Case switch in a regex action.

Labels: (2)
0 Kudos
Reply
3 Replies
emha
Nintex Newbie

Re: How to use a case-insensitive modifier in a textbox regular expression?

Jump to solution

unfortunatelly that's not possible.

you'd need to write custom validation function and perform case insensitive regex check within custom javascript code.

0 Kudos
Reply
alongcot
Nintex Newbie

Re: How to use a case-insensitive modifier in a textbox regular expression?

Jump to solution

Thank you, Marian.  I had a feeling this was the case.

0 Kudos
Reply
emha
Nintex Newbie

Re: How to use a case-insensitive modifier in a textbox regular expression?

Jump to solution

ahh, I've recalled possibility of use of inline modifiers.

try following

(?i)http://
0 Kudos
Reply