Need some help with Form field validation with a regex

Hello,

I’m looking for a little guidance on doing some simple field validation in a form in ISC. Basically, I’m looking to limit the values entered in a field to a numeric value between 1 and 30. I can get the numeric part, /d+, but adding the number range onto that is where I’m failing. I know how to do this in a normal regex, but the Lucene library regex format has me stumped. I’ve looked at all the guides I could find for Lucene and Elastic search but keep coming up empty, and I’m not finding much in the SailPoint documentation either. Does anyone have a good reference for building these regex expressions?

Thanks!

Mike Frank

Hi @mjfrank

I’d suggest using normal form regex validation. Can you try this ^([1-9]|[12][0-9]|30)$ please. Thanks

Well heck, that works perfectly, thanks! I guess I was making it more difficult than it was, I thought it was more like the search expressions.

Mike

Glad it helped. You’re welcome!