|Pathologically Eclectic Rubbish Lister|
Regular Expressionby pramod (Initiate)
|on Jun 27, 2012 at 11:37 UTC||Need Help??|
pramod has asked for the
wisdom of the Perl Monks concerning the following question:
I am trying to read a file containing the following strings: "Width = 32" and "Descr - This is Register1 comment"
and extract the Width = 32 from file, but my code fails to match.
Output: Garbage found: "Width = 32"
UPDATE: Thanks. I have removed extra spaces and new line character in my code. When I run the code individually it works, but when integrated with main package it doesn't work. As tobyink mentioned "Descr" is not matched.
In this integrated code "Descr - This is Register1 comment" doesn't match and goes to Garbage rule.