PDA

View Full Version : Regular Expression Problem



kaushal_gaurav
27th February 2009, 04:53
Hi,

I want to validate the inputs like "xxxx.xxxx" where x can be any integer from 0-9.
how can i write a regular expression for this?

Please help....

Regards,
GK

ComaWhite
27th February 2009, 05:19
I believe it would be [0-9]{4}\\.[0-9]{4}

kaushal_gaurav
27th February 2009, 09:41
That sovles the poblem... thanks...
but i ran into another problem....

This works fine until i setModel for the combo.
After i setModel for the comboBox.. the validation is all gone and i can type in whatever i want.

Am i missing something.. here...


Regards,
GK