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: Beginner: regex help: Edit Log



robertico
Novice

Mar 22, 2013, 12:41 AM


Views: 1156
regex help

I use this regex to extract all lines starting with ' { ' and ending with ' } '


Code
push (@matches,$&) while($line =~ /{(.*?)}/g );


Now I'd like to exclude lines that contains a ' * '
I've already tried several options (also used the Perl Regular Expression Quick Reference Card)
I assume I need to use ' ^ but can't get it done.
Please help


(This post was edited by robertico on Mar 22, 2013, 12:41 AM)


Edit Log:
Post edited by robertico (Novice) on Mar 22, 2013, 12:41 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