I need your advise in one case that i am scanning a card , it may be any card but if it contains any number begging with 'LYL' then it should be treated specially, rest all we ignored , so what logic we have that we scan all the cards and check that whether it is begging with 'LYL' series , if yes then e will treat them specially rest we ignored...
complete card format would be LYL01016278572011000000012
Is there any other way in java to achieve this..! through regular expressions or through regex pattern ...!! please advise..!!
Agreed. Regular expressions is not something that can be learned from a forum. If you are going to insist to use it, as a learning exercise, in place of simpler options, then we recommend actually picking up a tutorial / book.