Try this ^\d+ \w+ '([\d:]+)' \w+ '\1'$
The .+ you have might be matching more than you wanted. Also the \0 matches all of the match. You can use \0 through \9. -KC On Tuesday, July 24, 2012 7:42:55 AM UTC-4, 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? > > 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>
