[ic] perl issue

Ed LaFrance (New Media E.M.S.) ic_users at newmediaems.com
Sat Jul 17 20:23:59 EDT 2004

At 02:25 PM 7/17/2004, you wrote:

>This may be better asked in a perl group but I know many perl wizards read 
>this list so thought I'd try. I want to strip all charcaters from a string 
>that come before the first hyphen, as well as that first hyphen. For 
>example I want
>to become
>Is there an easy way to do that with perl?

Should be as easy as:

         my $string = 'AB-CDE-FGH'
         $string =~ s/.+?-//;

- Ed

New Media E.M.S.              Technology Solutions for Business
11630 Fair Oaks Blvd., #250   eCommerce | Consulting | Hosting
Fair Oaks, CA  95628          Ed.LaFrance at newmediaems.com
(916) 961-0446                http://www.newmediaems.com
(866) 519-4680 Toll-Free      (916) 961-0447 Fax

More information about the interchange-users mailing list