tune has asked for the wisdom of the Perl Monks concerning the following question:
My solution:
As you see it is not sure if the point is presented at the end of the chapter identifier or not ( \.? )if ($chapter=~/([\d+\.]+)\d+\.?/) { print "$1 is prior to $chapter"; }
--
tune
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parsing chapter id's
by Masem (Monsignor) on May 05, 2001 at 15:26 UTC | |
|
Re: Parsing chapter id's
by chipmunk (Parson) on May 05, 2001 at 19:43 UTC |