Bummer.
I'm currently just doing a very simplistic regex pattern assuming that
the user key in without the dashes (e.g 541031105785)
validates_format_of :icno, :with => /\d{12}\z/ ,:message => 'some msg
here'
Didn't occur to me to parse the dates and states but really cool idea.
Sure would be nice to know any other solutions the malaysian
brigadiers comes up with.
Thanks
Fadhli
On Jun 24, 12:05 pm, kamal <
kamal.fa...@gmail.com> wrote:
> I've written I/C validation before, but only for new I/C numbers. It's
> a combination of regexp, parsing the first six digits as a date, and
> checking the 7-8th characters against known states fromhttp://
en.wikipedia.org/wiki/MyKad