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

GREP Question

$
0
0

Could someone tell me how to write a GREP code that works something like this:

[\l\u]+~_\w+

Where the line it locates would look like this:

wordortext—wordortext

The GREP code above does the job but the thing is I only want the em dash highlighted so I can do a change on only the em dash. Some might say why not do a search for ~_ only. The reason is it's a large document with other em dashes that are arranged in different ways that I don't want effected. The GREP I provided above locates only what I want, but highlights the words in fron and after the em dash which wont work if I intend to change only the em dash to an en dash with \s before and after. Can someone please help?


Viewing all articles
Browse latest Browse all 65617

Trending Articles



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