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: [Stefanik] Match characters in middle and end string: Edit Log



Stefanik
User

Jan 10, 2013, 6:07 AM


Views: 13923
Re: [Stefanik] Match characters in middle and end string

I try to match the second point:

Code
($qpar =~ (/^.*SUB:.*[^;]$/m))


I find all the lines contain "SUB", but doesn't end with ";".
But the code seems to doesn't manages "^;" and print all the lines contain SUB also the one ending with ";".
Any suggests?


(This post was edited by Stefanik on Jan 10, 2013, 6:08 AM)


Edit Log:
Post edited by Stefanik (User) on Jan 10, 2013, 6:08 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