Hi,
I need to validate New jersey Taxpayer Identification Number
The length of this control 12 digits.
The validation scenarios:
This control contains only 12 digits.
all 12 digits are not same.
Ex: 111111111111
..
999999999999
it should not be sequence order
like 123456789012
It should not contain last three digits are zeroes
like 543044885000
I need one regular expression for all the above scenarios.
Thanks' in advance.
--
Best Regards
Ranganth potluri
Loading
VulpesPosted Jun 16, 2013, 12:51 PM
So try it like this instead which works in C# as it did before:
ranganath potluriPosted Jun 16, 2013, 10:43 AM
Thank's for your excellent solution in c#.
But it is not working in javascript.
please provide me solution for javascript as well.
Regards,
Ranganath potluri
VulpesPosted Jun 15, 2013, 4:09 PM
As expected, the output (since only the last two are valid) is:
Perhaps I could leave you to assemble it into a Javascript regular expression. The only advanced features I've used are 'back references' and 'negative lookahead' which, hopefully, Javascript will support.