CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Regular Expressions: Re: [rovf] Match characters in middle and end string: Edit Log



Stefanik
User

Jan 11, 2013, 6:15 AM


Views: 15398
Re: [rovf] Match characters in middle and end string

Hi rovf, thanks you're right about my question.
I try to change the regexp in the way you suggest me:


Code
if ($qpar =~ (/SUB:.?[^;]$/m)){print $qpar;}


But no lines are printout.

The file I check in contains following lines:





Code
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)


Edit Log:
Post edited by Stefanik (User) on Jan 11, 2013, 6:18 AM
Post edited by Stefanik (User) on Jan 11, 2013, 6:26 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives