2 Replies Latest reply on Aug 13, 2013 1:29 PM by tusharde

    Capture whole word in GREP to include apostrophes

    tusharde Level 1

      Hi

      I want to run a GREP search on a paragraph to find whole words. But that search needs to include apostrophes before, in the middle, or after the word.

       

      For example the GREP search should capture the following words that involve various uses of apostrophes:

      - wasn't

      - goin'

      - rock 'n' roll.

      - 'cause.

       

      I tried the following GREP:

       

      \<\w+('??)\w+\>
      
      

       

      But it only captures captures words with apostrophes inbetween (wasn't, don't) but avoids words with apostrophes at the end (goin').

       

      Thanks

      -Tushar