1 Reply Latest reply on Jan 27, 2013 1:40 PM by [Jongware]

    Using the pipe in GREP

    Chris Z.

      Hi,

      I'm trying to fashion a GREP search that finds an word in all caps, followed by a a space and then a word in U&lc or a digit. Then replace the space with a hard return.

       

      Changing this:

      TEXT DESIGN Marijka Kostiw

       

      Into this:

      TEXT DESIGN

      Marijka Kostiw

       

      However, sometimes I need to change something like this:

      TEXT STOCK 150GSM MUNKEN PRINT CREAM

       

      Into this:

      TEXT STOCK

      150GSM MUNKEN PRINT CREAM

       

      This search/replace works if the initial uppercase word is followed by an U&lc word, but not if it is followed by a digit:

       

      Find: (\u+) (\u\l)

      Replace: $1\r$2

       

      I'm having a tough time figuring out how to use the pipe to say "uppercase character followed by lowercase character or digit."

       

      Can anyone offer any advice?

       

      Thanks,

      Chris