Grep - find a character (or characters) within a word
I have two questions - both related to each other.
1. Supposing I want to find the r character in the selection of words below but ONLY the final r in each of the words. That is, the r must be followed by one of the patterns ai, as, a, ons, ez, ont.
travaillerai
travailleras
travaillera
travaillerons
travaillerez
travailleront
2. I want to find the xyz below as long as it's preceded by blah and followed by blahblah, as in this string:
blahxyzlahblah
Can anyone tell me the GREP expressions that would allow me to do both of these tasks?
Thanks in advance.
