Re: Isolating a word with a certain pattern

2004-07-21 Thread Paul Smith
Prasanna Kothari wrote: Have a look at "\w" Refer: http://www.perldoc.com/perl5.8.4/pod/perlrequick.html I am trying to write a script to identify all words having a certain pattern in a text file. Is there in Perl a direct way of isolating a word with a certain pattern? Or has one to

Re: Isolating a word with a certain pattern

2004-07-21 Thread Damon Allen Davison
print; } __DATA__ I am trying to write a script to identify all words having a certain pattern in a text file. Is there in Perl a direct way of isolating a word with a certain pattern? Or has one to check all characters, bearing in mind that a word is a string delimited by two spaces? Outp

Re: Isolating a word with a certain pattern

2004-07-21 Thread Prasanna Kothari
Have a look at "\w" Refer: http://www.perldoc.com/perl5.8.4/pod/perlrequick.html Paul Smith wrote: Dear All I am trying to write a script to identify all words having a certain pattern in a text file. Is there in Perl a direct way of isolating a word with a certain pattern? Or has on

Isolating a word with a certain pattern

2004-07-21 Thread Paul Smith
Dear All I am trying to write a script to identify all words having a certain pattern in a text file. Is there in Perl a direct way of isolating a word with a certain pattern? Or has one to check all characters, bearing in mind that a word is a string delimited by two spaces? Thanks in advance