in reply to Help please
A fairly simple regex will take care of that.
{ local $_; while (<>) { /it (.*)[.?,]$/i and print $1, $/; } }
Update: ++davidrw's points are accurate and easily corrected. I'll follow his lead and leave the modifications as an exercise. Also, you may wish to allow for any amount of any sort of whitespace after "it".
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help please
by davidrw (Prior) on Jun 27, 2005 at 01:28 UTC | |
by steveatmarz (Initiate) on Mar 11, 2008 at 19:50 UTC | |
by davidrw (Prior) on Apr 26, 2008 at 03:46 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |