Say I want to match the a
character "h a
" or "f a
". So capture all the a that are preceded by an h
or an f
.
I tried the following :
1) \(h\|f\) \\(a\\)
but it doesn't work. the problem appears to be with the the OR group, if I do
2) h \\(a\\)
the a
in the string h a
is captured.
Does anyone know how to fix my first expression?