in reply to Help composing Regex for matching only Titlecase words
Just remember that a lot of this contingent on your data, but that should work for any normal English paragraph with regular spacing rules.my $data = "Antler embedded in mound at South Street, Avebury, Wiltshi +re, England. Comment (lab): Collagen fraction used"; while($data =~ /([A-Z]\S+?)\s/g) { print $1." "; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help composing Regex for matching only Titlecase words
by kennethk (Abbot) on Mar 03, 2011 at 22:38 UTC |