in reply to Regex capture between word and punctuation
Why, O Why, does this look like a homework assignment? Never mind.
Hint 1: The regex you would be looking for is something like this: /\bit\b.*[,.?]$/i
Hint 2: use a regex to strip off everything before the first (last?) "it" and print the remainder of the line.
Note that hints are not complete solutions.
Also, your title is not sufficiently descriptive of the problem you are looking for assistance on.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex capture between word and punctuation
by negzero7 (Sexton) on Mar 18, 2008 at 17:06 UTC |