hi friends…
in my application i have number of days field.
it Should not allow user to input special characters in the field.and it
Should not allow blank space in the Number of Days field.
what regular expression can i use…
Thanks a lot
\d+
Perhaps it’s best if you try, and then if you fail ask the question?
Otherwise you will be asking on the list everytime you need a regular
expression
I recomment the following
Simon
On Sat, 20 Jun 2009 13:44:15 +0800, Newb N.
Simon M. wrote:
Perhaps it’s best if you try, and then if you fail ask the question?
Otherwise you will be asking on the list everytime you need a regular
expressionI recomment the following
Regular Expressions Cheat Sheet by DaveChild - Download free from Cheatography - Cheatography.com: Cheat Sheets For Every OccasionSimon
On Sat, 20 Jun 2009 13:44:15 +0800, Newb N.
Sorry for my ignorance,
actually i tried but i dont know how limit the input upto two digits…
that is i Should limit the input to two digits in the field.
it should accept 20 and 5 but not 120…
that s my confusion…
Thanks for ur Reply
- Please refrain from bumping your topic so often, you clearly stated
your request in a previous post, there is no need to repost with no
added information 10 minutes later. The only thing you might achieve
is to deter people that may help you. - Most people here don’t mind helping people who are obviously stuck,
but will mostly ignore those who are blatantly lazy and don’t even
care to read the links given them.
Am 20.06.2009 um 08:18 schrieb Newb N.:
Is it possible to limit the input upto two digits using regex
- Which brings me to the point: Have you even read in full the link
Simon gave you? There is a box called “Quantifiers”, with which you
can specify the number of occurrences of a certain pattern in your
regex. Please go read up on that, or for that matter on any of the top
results google yields for “ruby regex” or something like that, and if
you still have problems understanding what is written there, come back
and ask, if you are just too lazy to make even that little bit of
research for yourself, then please stay away from this forum, thank you.
Felix
Is it possible to limit the input upto two digits using regex