On Tue, Jul 24, 2012 at 04:42:55AM -0700, Melissa 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'$ > > ...but it doesn't. Can someone point me in the right direction please?
It appears that your text has two spaces after "Replaced", but your regex only allows one. Try this instead: ^\d+ Replaced +'(.+)' with '\01'$ Ronald -- 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>
