On Thu, Jun 11, 2009 at 12:45:19PM -0700, JohnL wrote:
> 
> Oh Great Gods of Grep,
> 
> There oughta be a way to accomplish this task:
> 
> I want to turn the numerals in these lines
> 
> >lorem ipso 240
> >nother ipso 241
> >mas ipsos 242
> > ...
> >fini ipsos 26x
> 
> into new numbers so that this is the result
> 
> >lorem ipso 487
> >nother ipso 488
> >mas ipsos 489
> > ...
> >fini ipsos 50x
> 
> Solutions preferred, but hints accepted.

You can't do this with a simple grep in BBEdit, because you can't evaluate
an expression in the replacement.  You'll have to use something like Perl
or Applescript instead.

It's not clear to me how the new number is calculated from the old number.

Ronald

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "BBEdit Talk" group.
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 specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to "[email protected]" 
rather than posting to the group.
-~----------~----~----~----~------~----~------~--~---

Reply via email to