Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: field_filters not working

by bar10der (Beadle)
on May 12, 2004 at 15:41 UTC ( #352796=note: print w/replies, xml ) Need Help??

in reply to field_filters not working

Hi, I did write a constraint but looks like I am struck a bit. Here is the code -

constraints => { smcsystems => qr/^\d+$/,}

But above is accepting any data - numeric and non-numeric. However if i change code to ->

constraints => { smcsystems => qr/^\d{3}$/,}

It does validate data but then I have to enter 3 digits(that is the max length allowed in my form field). Now I am not sure how I can write reg-ex so that it accepts any number of digits but no alpha chars.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://352796]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (1)
As of 2021-09-28 17:25 GMT
Find Nodes?
    Voting Booth?

    No recent polls found