Hello,
On May 22, 2010, at 5:22 PM, Fritz Anderson wrote:
On 21 May 2010, at 12:54 PM, Brian Byllesby wrote:
Is there a way to copy the search results to a new document?
Specifically when using grep to add new text surrounding results.
I think you've made your question more concise than necessary. What
kind of results of what kind of search?
for a document like:
FirstName LastName
(111) 123-4567
Other details
FirstName LastName
(111) 234-5678
Other details
Find:
([a-z]+\s[a-z]+)\s(\([0-9]{3}\)\s[0-9]{3}-[0-9]{4})
Replace:
\1\t\2
desired output to new document (replace format):
FirstName LastName (111) 123-4567
FirstName LastName (111) 234-5678
except rather than replace in document I would like it to write the
would be replace string into a new document.
Have you examined the Text > Process Lines Containing… command? It
lets you grep through a single file, and copy the matching lines to
a new document. You'd have to do replacements as a separate step,
though.
I hadn't (thanks)... this would work if it returned the specific
matches rather than line of match and could add additional text to
results like how replace functions for find.
— F
--
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.
--
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.