Skip to main content

I've been battling the smallest thing and need some help.

 

I have requirement where user wants  Min 2 / Max 256 (or different number)  Alphanumeric with space.

 

I've been trying this:

^

^

 

Seemed at one point it would work sometimes and then not.

I know it has to be something super easy...

Thanks!

This looks alright to me:


^[a-z A-Z0-9s]{2,256}$


 


You shouldn't need the "+" quantifer since you are already specifying it specifically in "{2,256}". Do you have an example value where that particular regex did not work?


 


You can also try this:


^[ws]{2,256}$


 


The error is happening on our QA / Model Environment and not our DEV Environment.

 

Basic text boxes.  You can see from the image that I'm using the same text in both environments and one is working and one is not.  The MO is only the package from DEV - no modifications.

 

I'm going to try your example and see if that works.

 

Just not sure why it would work in one and not the other.

 



Had our K2 Admin package up the forms again and deploy them in our QA Environment.

 

The validation is working in DEV but not QA - and we do not edit anything in QA.   See images from previous post

 

Any thoughts as to why they would be working in one and not the other? 

 

Any suggestions?

 

I have several requirements where I have   min 2 / max 25/250/1000 - alpha numeric (should obviously include spaces)


Reply