On Sep 30, 2011, at 11:40 AM, mweisman wrote:

> I have some very long sql queries that are stored in a single line
> with statements separated by a ; to get around a bug in a program I
> use that limits me to single line queries. When I need to make changes
> to the queries, I like to split them out into multiple lines to make
> them readable. Most text editors allow me to do a find and replace to
> replace ';' with ';\n' to split them out. BBEdit just inserts a
> literal '\n' in place of a new line, even when I have the grep button
> clicked.
> 
> Is there another way to use a new line as a replacement character?

Use '\r' in your search.  If your file is Unix text (or saved as such) it will 
be saved as a newline ('\n').

BBEdit's '\r' convention took some getting used to when I switched to the Mac.  
I assume it is a holdover from the classic Mac days, where text files were 
carriage-return delimited.

-- 
Rod Buchanan

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to