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+unsubscribe@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 "support@barebones.com" rather than posting to the group. -~----------~----~----~----~------~----~------~--~-
May 17
Peter N Lewis Re: Move a Text Line to the Start
May 17, 2009; 18:59
Peter N Lewis
Re: Move a Text Line to the Start
May 18
John Delacour Re: Move a Text Line to the Start
May 18, 2009; 02:56
John Delacour
Re: Move a Text Line to the Start
May 18
Peter N Lewis Re: Move a Text Line to the Start
May 18, 2009; 19:22
Peter N Lewis
Re: Move a Text Line to the Start
May 19
Roland Küffner Re: Move a Text Line to the Start
May 19, 2009; 01:27
Roland Küffner
Re: Move a Text Line to the Start
May 19
Ronald J Kimball Re: Move a Text Line to the Start
May 19, 2009; 08:33
Ronald J Kimball
Re: Move a Text Line to the Start
May 19
davecortesi Re: Move a Text Line to the Start
May 19, 2009; 08:53
davecortesi
Re: Move a Text Line to the Start
May 19
Ronald J Kimball Re: Move a Text Line to the Start
May 19, 2009; 09:28
Ronald J Kimball
Re: Move a Text Line to the Start
May 22
James Re: Move a Text Line to the Start
May 22, 2009; 09:52
James
Re: Move a Text Line to the Start
May 22
Dennis Re: Move a Text Line to the Start
May 22, 2009; 13:29
Dennis
Re: Move a Text Line to the Start
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!