On Thu, Oct 26, 2006 at 02:28:41PM -0400, Tim Gray wrote: > Another quick grep question. I have many lines of text similar to this: > fig4 = figure(4, figsize = (4,3)) > fig4.clear() > ax4 = fig4.add_subplot(111) > > I want to change all occurences of of fig4, ax4, and a couple of other > items following the pattern of \w\w\w4 with fig5, ax5, etc. > > Matching is easy: > (fig|ax)4 > or > (\w\w\w?)4 > > Question is how I replace it. Clearly \15 doesn't work since it > references pattern 15...
Use \015 instead. That will be parsed as \01 followed by 5. Ronald -- ------------------------------------------------------------------ Have a feature request? Not sure the software's working correctly? If so, please send mail to <[EMAIL PROTECTED]>, not to the list. List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml> List archives: <http://www.listsearch.com/BBEditTalk.lasso> To unsubscribe, send mail to: <[EMAIL PROTECTED]>
