| From: Massey Padgham | Date Sent: 2009-10-17 20:47:52 |
| Subject: Grep query | To: InDesign Talk |
| Navigation: First Message | Previous Message | Next Message | Last Message | |
Neophyte with GREP. Need to do following to a wire service feed our back end
can't seem to clean up. It's coming in with paragraph returns at the end of
every line. I want to search for paragraph returns NOT preceded by a period
and replace 'em with a space.
Thanks
Massey Padgham
| From: Harbs | Date Sent: 2009-10-17 23:39:55 |
| Subject: Re: Grep query | To: InDesign Talk |
| Navigation: First Message | Previous Message | Next Message | Last Message | |
(?<![.?!])\r
The above will find any returns not following a period, question mark
or exclamation mark.
Just put a space in the change field, and you're set.
Some good resources for learning GREP:
1) Peter Kahrel's book on GREP in InDesign. (must read) http://oreilly.com/catalog/9780596156015/
2) http://www.regular-expressions.info/ has an excellent tutorial on
GREP. (That's where I learned how to use GREP as per Peter Kahrel's
advice.)
3) Kris' flash tool for exploring GREP results here: http://www.rorohiko.com/greptutor/GrepTutor.html
Harbs
http://www.in-tools.com
Innovations in Automation
On Oct 18, 2009, at 5:47 AM, Massey Padgham wrote:
> Neophyte with GREP. Need to do following to a wire service feed our
> back end can't seem to clean up. It's coming in with paragraph
> returns at the end of every line. I want to search for paragraph
> returns NOT preceded by a period and replace 'em with a space.
>
> Thanks
> Massey Padgham
| From: Jane_Edwards | Date Sent: 2009-10-21 15:52:06 |
| Subject: Re: Grep query | To: InDesign Talk |
| Navigation: First Message | Previous Message | Next Message | Last Message | |
In addition--watch for Michael Murphy's new training video on GREP on
lynda.com. He just finished recording. Or go to his website and find
out where he teaches and take a hands-on class from him.
Jane
On Sun, Oct 18, 2009 at 2:39 AM, Harbs <harbs@[Protected]> wrote:
> Some good resources for learning GREP:
>
> 1) Peter Kahrel's book on GREP in InDesign. (must read)
> http://oreilly.com/catalog/9780596156015/
> 2) http://www.regular-expressions.info/ has an excellent tutorial on GREP.
> (That's where I learned how to use GREP as per Peter Kahrel's advice.)
> 3) Kris' flash tool for exploring GREP results here:
> http://www.rorohiko.com/greptutor/GrepTutor.html