I need to match a string which second letter is “a”, my current regex is:
^([^a-zA-Z]*[a-zA-Z][^a-zA-Z]*)a+
but this matches less than I need, I dont even know what It doesnt match but do you know where is the problem, or if there is a better way of doing this?
For example I need to match these:
" kamcnn"
",.,ya..--/**+-00"
"0 0 q a"
I match every string that I can imagine but Im still getting lower results than I should get.
EDIT: By “letter” I mean a character from [a-zA-Z] class.
Try this:
This matches the entire string if the second ASCII letter is
a: