Regular expression

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
http://www.addedbytes.com/cheat-sheets/regular-expressions-cheat-sheet/

Simon

Simon Macneall 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
expression

I recomment the following
http://www.addedbytes.com/cheat-sheets/regular-expressions-cheat-sheet/

Simon

On Sat, 20 Jun 2009 13:44:15 +0800, Newb Newb

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

Is it possible to limit the input upto two digits using regex

1. 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.
2. 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.

Is it possible to limit the input upto two digits using regex

3. 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