in reply to Regular expressions....
$data = "This is a test 1. This is a 2 test. This is a last test."; @lexemes = $data =~ /([^.]+\.)\s*/g;
Update: \s* added
--
any code is tested unless otherwise stated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regular expressions....
by ysth (Canon) on Jul 12, 2004 at 19:49 UTC |