in reply to Re^2: Help to build a REGEXP
in thread Help to build a REGEXP
It doesn't work because your regex doesn't match whatever is in $_. Of course, as you've refused to advise us what $_ contains, you can't possibly expect any further information on what was happening in that isolated code fragment.
I provided you with a solution. Your response says you tried something completely different. Why did you reply to my post telling me that?
Did you try my solution? Did it do what you wanted? If not, what did it do differently? Was it unsuitable for your class exercise? If so, in what way was it unsuitable?
You've failed to tell us what data you're actually trying to match against: first with $line7 and more recently with $_. Why? I even gave you the specific code in my earlier response " (i.e. print "$line7\n";)". Did you do this? If you did, what was the output? If you didn't, why not?
You've received a lot of advice from people who've freely given their time to try to help you. I think its about time you put in some effort yourself: answer questions, provide output, try solutions and so on.
-- Ken
|
|---|