in reply to RegEx Problem
$phrase = "NoMatch cowsCanFly sheepAreVeryCool NoMatch"; $phrase =~ s{ \b ( [a-z]+ (?:[A-Z][a-z]+)+ ) \b }{ my $word = $1; $word =~ s/([A-Z])/"-" . lc($1)/eg; $word; }gex; print $phrase, "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: RegEx Problem
by samtregar (Abbot) on May 29, 2002 at 06:26 UTC | |
by broquaint (Abbot) on May 29, 2002 at 10:30 UTC | |
by samtregar (Abbot) on May 29, 2002 at 15:29 UTC | |
by broquaint (Abbot) on May 29, 2002 at 18:17 UTC |