Ralf Peters Posted May 19, 2016 Share Posted May 19, 2016 Hi , I am trying to set up a custom form in our progessive capture and having issues with the regex validation . I am trying to capture a phonenumber and only allow 11 digits as input. i tried this syntax REGEX_MATCH(Phonenumber,'[0-9]{11}') but it does not work , i always get a <false> i have attached a screeshot of the field settings . Any idea where I am going wrong ? Thanks Ralf Link to comment Share on other sites More sharing options...
TrevorKillick Posted May 19, 2016 Share Posted May 19, 2016 Hi Ralf I tried the following and it seams to work? Kind Regards Trevor Killick Link to comment Share on other sites More sharing options...
Ralf Peters Posted May 19, 2016 Author Share Posted May 19, 2016 Hi Trevor , thanks for the reply almost there , when i test it requires at least 11 digits , but then accept anything after that, any way to just restrict it to 11 ? Thanks Ralf Link to comment Share on other sites More sharing options...
Steve Giller Posted May 19, 2016 Share Posted May 19, 2016 Shouldn't need it, but try ^([0-9]{11})$ 1 Link to comment Share on other sites More sharing options...
TrevorKillick Posted May 19, 2016 Share Posted May 19, 2016 Thanks Steve It does require the ^ and $ Just tested and it exactly matches 11 numbers with those additional characters. Regards Trevor Link to comment Share on other sites More sharing options...
Ralf Peters Posted May 19, 2016 Author Share Posted May 19, 2016 Thanks Guys, that's working . Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now