15 Replies Latest reply on Sep 20, 2018 7:21 PM by Jean-Claude Tremblay

    Grep - find a character (or characters) within a word

    hughanagle Level 1

      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.