On 6/18/10 at 2:45 PM, [email protected] (LuKreme) wrote:

On 18-Jun-2010, at 09:15, Bill Rowe wrote:

On 6/17/10 at 8:58 PM, [email protected] (Keith) wrote:

If I create a search using grep like this

(.*)

and use replace of:

mv \1 \1.pine

BBEDIT 9.5 replaces all strings numerous times.

foo\r becomes mv foo foo.pine foo.pine.pine\r or similar

How do I prevent replace all from creating those erroneous
entries? I can use Replace & Find, but this is a large document.

Try using (.+) as the search pattern rather than (.*). The pattern
.* means match anything zero or more times. I believe this is the issue.

Or

Search: .* Replace mv & &.pine

No. This will match on blank lines and not fix the problem. Try it on a test case and see.

But you could do

search: .+ Replace with mv & &.pine

--
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.

Reply via email to