Perl and Regular Expressions
Hello,
can anybody tell me, why the following Expression does not match this line: #gptofoo pcl-900 printer/HP-Business_Inkjet_2200 Regular Expression: if (m!^\#\s*gptofoo\s+([^\s]+)\s+([^\s]+)!) { Greets Frank |
Code:
$ perl -le '$line = "#gptofoo pcl-900 printer/HP-Business_Inkjet_2200"; print "hi" if $line =~ m!^\#\s*gptofoo\s+([^\s]+)\s+([^\s]+)!' |
All times are GMT -5. The time now is 06:57 AM. |