[Ilugc] Reg exp help

  • From: parth.technofreak@xxxxxxxxx (Parth)
  • Date: Fri Sep 7 12:43:43 2007

On 9/7/07, Suresh Kumar <suresh1876@xxxxxxxxx> wrote:

hi. i need reg exp for validation
to allow
  4.000,00

are you sure.. a 4 followed by . followed by 000 followed by , and
then by 00 ? or is it 4,000.00 ?

  459,00
  4,00
  49,00

not to allow
 4
 44
 4.000
  459

currently i trying this..    /^\d+\,\d+$/
so can some help me out..

Try this one --> ^[0-9.,]*(\.|\,)[0]{2}
-- 
Parthan aka Technofreak
FOSS Enthusiast and Ubuntero

People become really quite remarkable when they start thinking that
they can do things. When they believe in themselves they have the
first secret of success.
 ~ Dr. Norman Vincent Peale

Other related posts: