Regular Expression for both integer and decimal values

  • Thread starter Thread starter GD
  • Start date Start date
G

GD

Hi,
Some one please points out what is wrong with the following custom
expression in a RegularExpressionValidator:

(\d{1,6})|(\d{1,6}\.\d{1,6})

The first part is for integer and the second part is for decimal. If I use
either part alone, they work fine. However, the "or"( | ) doesn't seem to
work. Please help. TIA.

GD
 
Back
Top