in reply to Re^2: Phone Number Regular Expression
in thread Phone Number Regular Expression

s/.../888${1}555-$2/ will do it for you. The braces around the variable name, specifically, are what you're looking for.

Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart

Replies are listed 'Best First'.
Re^4: Phone Number Regular Expression
by lev36 (Sexton) on Mar 16, 2006 at 17:55 UTC

    Righteous! That should give me all the building blocks I need for my script. Thanks again to all!

    And thanks also to whomever gave the thread a more useful name...