Re: RegEx (m//) Flinstones

2006-04-30 Thread Hardly Armchair
On Tue, 2006-25-04 at 17:36 +0400, Monomachus wrote: This matches only the first occurrence. You will need a loop to match them all. Just wanted to say that this piece of info just totally saved my life. Thanks! Adam -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RegEx (m//) Flinstones

2006-04-25 Thread Monomachus
I need a RegEx (!!!with modify(m//)) what matches the words what ends with 'a'. = I have a test_file (for ex.:) = beforematchafter wilma and nana Mrs. Wilma Flinstone hommie barney wilmafred wilmafred flinstone mamafred

Re: RegEx (m//) Flinstones

2006-04-25 Thread Mr. Shawn H. Corey
On Tue, 2006-25-04 at 17:36 +0400, Monomachus wrote: #!/usr/bin/perl -w use strict; my $i=1; while () { # take one input line at time chomp; if (/(\b\w*a\b)/) { This matches only the first occurrence. You will need a loop to match them all. print $1

Re: RegEx (m//) Flinstones

2006-04-25 Thread Jay Savage
On 4/25/06, Monomachus [EMAIL PROTECTED] wrote: I need a RegEx (!!!with modify(m//)) what matches the words what ends with 'a'. = I have a test_file (for ex.:) = beforematchafter wilma and nana Mrs. Wilma Flinstone hommie barney