I need to match one upper case letter followed by optional +/- symbol
eg. The possible matches are A/A+/B/B-/C/C+ ... Z/Z+/Z-
I have tried :
regExp= /^[A-Z][\+,\-]?/;
But this is allowing special characters and double chars as well AA/AB/A$/A# etc
Here first part [A-Z]
seems to work properly but second part [\+,\-]?
is not working