in reply to grep question using multiple lines
replaced by "\1". You can use "Replace All" and get the result you want. If you are willing to accept a multi-step solution, you can make this more robust and easily eliminate the assumption of no more than one address per line.^.*constant=(\w+@\w+\.\w+).*|^.*\r
In my usage, I'd be inclined to use a regex in "Process Lines Containing..." to eliminate lines without an email address. I'd then extract the email addresses from the remaining lines with a regex. I believe all of this could be automated in a BBEdit Text Factory.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: grep question using multiple lines
by backstab (Novice) on Dec 28, 2008 at 03:31 UTC | |
by eye (Chaplain) on Dec 28, 2008 at 06:13 UTC | |
|
Re^2: grep question using multiple lines
by bradcathey (Prior) on Dec 28, 2008 at 13:58 UTC |