
jkepler
Novice
Jul 22, 2014, 2:01 AM
Post #1 of 4
(16542 views)
|
Problem extracting an expression
|
Can't Post
|
|
Hi, I'm trying to extract an expression from a line. Here's what I'm doing: my $exp = $line =~ m/[FAR PASCAL|FAR PASCAL_CONV]\ (.*)\(/gi; with $1 I get the expression I want, but also the sring PASCAL ! The $line exp is of the type: FAR PASCAL what_i_want(etc...) or FAR PASCAL_CONV what_i_want(etc...) What am I doing wrong...? Kind regards, jkepler
|