Page 1 of 1

Perl Regular Expression query

Posted: Thu Sep 17, 2009 1:12 pm
by uggers2k
Hi all

I am receiving a variable and it is in the following format:
$name = "Jim James (jjames)"

What I would like is some example code in perl to extract all characters between the ( ) and store in another variable.

So in the example above jjames would be stored in the variable.

I can do this in PHP using preg_match, but I need to do it in Perl also.

Thanks all

Uggers (Oracle DBA learning Regular Expressions)

Re: Perl Regular Expression query

Posted: Fri Sep 18, 2009 8:48 am
by uggers2k
Now sorted