can ant one help me
based on credit card length i have to display that card number in front end like this
if card length is
13 means xxxx xxxx x-xxxx
14 means xxxx xxxx xx-xxxx
15 means xxxx xxxx xxx-xxxx
like this i amnot supposed to hardcode cardlength and anything
what ever the user enter the card num , that i have to display like above using java code or regular expressions.