I need to implement alphanumeric increment algorithm like
AAA001 should become AAA002
AAA999 should become AAB000 and so on.
All alphabets are in uppercase and letters are from 0-9.
It can contain alphabet or letter at any position in the alphanumeric string.
There are some rules though, like some 000 or 666 should not come in a series. That can be done later on but I am in need of basic logic to implement the algorithm.
I see many people did not understand my question.
Just imagine the Plate Number of a vehicle which is nothing but a alphanumeric series which can have some excluded characters like BB6660 -> 666, triple 6 in between is not allowed.
It should support different formats like-
@@@##
@#@@##
1@#@@##
@@@@####
##@@#@