Quantcast
Channel: Adobe Community : Discussion List - InDesign
Viewing all articles
Browse latest Browse all 65617

Using the pipe in GREP

$
0
0

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


Viewing all articles
Browse latest Browse all 65617

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>