Perl regex question

by Jeff Adelsberger <jade(at)edoc.com>

 Date:  Thu, 17 Feb 2000 14:58:02 -0500
 To:  <hwg-languages(at)hwg.org>
  todo: View Thread, Original
Greetings all,

In a regex is there a way to affect a previously captured value. ie:

s/blahblah([0-9]+)\-($1+1)/blahblah$1, blahblah$2/g;
                     ^^^^
where the ^^^^ item is the first captured value plus one?
-----------------------
   Jeff Adelsberger
 Production Specialist
   Dynamic Diagrams
  - Baltimore / CPC
phone:     410.694.4149
email:    jade(at)edoc.com
-----------------------

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA