
Stefanik
User
Jan 11, 2013, 6:15 AM
Post #7 of 31
(38727 views)
|
Re: [rovf] Match characters in middle and end string
[In reply to]
|
Can't Post
|
|
Hi rovf, thanks you're right about my question. I try to change the regexp in the way you suggest me:
if ($qpar =~ (/SUB:.?[^;]$/m)){print $qpar;} But no lines are printout. The file I check in contains following lines:
SET:TESTSUB:TRANSID,t1:NUM,428:PARAMETERS,other; GET:TESTSUB:TRANSID,t2: SET:TESTSUB:TRANSID,t3:NUM,428:PARAMETERS,other;no NUM,327 :PARAMETERS,other; <?xml version='1.0' encoding='ISO-8859-1' standalone='no'?><Request MO="OSUB" O peration="get"> <num>456</num></Request> <?xml version='1.0' encoding='ISO-8859-1' standalone='no'?> <Response> <errorid>051</errorid> </Response>
(This post was edited by Stefanik on Jan 11, 2013, 6:26 AM)
|