develooper Front page | perl.beginners | Postings from February 2002

Re: pattern matching question

Thread Previous
From:
bob ackerman
Date:
February 28, 2002 09:32
Subject:
Re: pattern matching question
Message ID:
1811B8F6-2C71-11D6-9627-003065428126@pacbell.net

On Thursday, February 28, 2002, at 08:37  AM, richard noel fell wrote:

> while (defined($Line=<In2>)){
>   if($Line=~/(\(D\d+\))\s*(\w*)/){
> print "==> $2\n";
> };
> };
>

disclaimer: i am a rank newbot
if i replace '/w*' with '.*$'
i get desired text.
looks like \w* doesn't do what we expect.
problems with \t in lines?

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About