On 24-May-2011, at 11:11, David wrote: > Hi, > > I have a bunch of references of the form [ex:7.5.3], [ex:7.5.4], [ex: > 7.5.5] etc, and I'd like to change them all to [ex:7.6.3], [ex:7.6.4], > [ex:7.6.5], etc. How can I do a search and replace to do this?
find: ex:7\.5\.(\d) replace: ex:7.6.\1 The parens capture the last character (only if it's a digit) and the \1 puts it back. If you were intending to ask how to change 7.5.x to 7.6.x and 7.6.x to 7.7.x, then that is beyond the power of a single regex. You would need a script. -- 'There's a kind of magic in masks. Masks conceal one face, but reveal another. The one that only comes out in darkness. I bet you could do just what you liked, behind a mask...?' --Maskerade -- 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>
