On Tue, Jul 24, 2012 at 4:42 AM, Melissa <[email protected]> wrote: > I'm hoping someone can help me work this one out. I have text in this > format: > > 1 Replaced '1:2:333:4' with '1:2:333:4' > 12 Replaced '1:2:444:10' with '1:2:444:7' > 105 Replaced '1:2' with '1:3' > 200 Replaced '1:2:7' with '1:2:70:9' > > What I want to do is find all the lines where the set of numbers between the > quotes match, like in the first line. I was hoping that something like this > would work: > > ^\d+ Replaced '(.+)' with '\01'$
untested: ^\d+ Replaced '([^']+)' with '\01'$ this assumes that the single quote character does not occur inside the first set of numbers. > > ...but it doesn't. Can someone point me in the right direction please? > > Thanks! > Melissa > > -- > 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> -- David Eves tel: 408 462-2410 -- 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>
