Hi,
I am new to javascript, I need your help in javascript validation of a string.
string of length 6,
last 4 characters can be padded with "8" while entering.
valid strings are
ZJJL74
ZJJL7*
ZJJL**
ZJJ***
ZJ****
Invalid strings are
ZJ*L74
ZJJ*7*
*JJL**
Z*****
*****4
this means * cannot be entered in the middle,
it can be entered only at the end maximum up to last 4 characters.
please provide the solution ASAP, will be very grateful
I am new to javascript, I need your help in javascript validation of a string.
string of length 6,
last 4 characters can be padded with "8" while entering.
valid strings are
ZJJL74
ZJJL7*
ZJJL**
ZJJ***
ZJ****
Invalid strings are
ZJ*L74
ZJJ*7*
*JJL**
Z*****
*****4
this means * cannot be entered in the middle,
it can be entered only at the end maximum up to last 4 characters.
please provide the solution ASAP, will be very grateful
Comment