Given a text document containing a number of lines separated by line breaks, I 
need to find a particular line and move it to the start of the document.

Seems like a strategy would be to find the entire document in three parts: 
the lines before the target line
the target line
the lines following the target line. 

Then just replace with \2\1\3

If, for example, the target line is: 
        <startTime>.*</startTime>
how do I make it the middle part of the found text?




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "BBEdit Talk" group.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to "supp...@barebones.com" 
rather than posting to the group.
-~----------~----~----~----~------~----~------~--~---

Reply via email to