S
S.Marion
Hello,
I have a problem with my regexp.
I'm trying to match the following pattern:
$cmd =~ /static \{\};(.*\n)(.*)Signature:
\(\)V(.*\n){1,3}.*Code:\n(.+\n){1,$limit}\s*$offset.*)/g;
The problem is that there can be many lines between the "Code" and the
$offset.
By many line I mean thousands.
When the offset is further than about 8000 lines, I have a segfault !
I guess the problem is that it's feeding too much info into $3 whereas
I'm only interested in the remaining of the line after $offset (that is $4).
Basically, if I could avoid using $3 I wouldn't mind !
Do you know any way I could fix this?
Thank you for your help,
Sebastien
I have a problem with my regexp.
I'm trying to match the following pattern:
$cmd =~ /static \{\};(.*\n)(.*)Signature:
\(\)V(.*\n){1,3}.*Code:\n(.+\n){1,$limit}\s*$offset.*)/g;
The problem is that there can be many lines between the "Code" and the
$offset.
By many line I mean thousands.
When the offset is further than about 8000 lines, I have a segfault !
I guess the problem is that it's feeding too much info into $3 whereas
I'm only interested in the remaining of the line after $offset (that is $4).
Basically, if I could avoid using $3 I wouldn't mind !
Do you know any way I could fix this?
Thank you for your help,
Sebastien