I am new to regex I want to create regex for following
AL--->accepted
AL100--->accepted
100---->accepted
100L--->Rejected
AL1122--->accepted
AL1224K-->rejected
Means either its AL or AL with numbers or only numbers
Below is my Regex which I have written but it's not working
^AL[0-9]+$|AL
Please Help
Thanks