Gossamer Forum
Quote Reply
Split
Hi,

I have a value of '123|something else' and I just want to output the content after the |

What is the smallest global that can pull this off?

Cheers
Klaus

http://www.ameinfo.com
Quote Reply
Re: [klauslovgreen] Split In reply to
my $string = '123|something else';
my ($match) = $string =~ /\|(.*)/;

should do the trick.

Cheers,

Alex
--
Gossamer Threads Inc.