Displaying page
of
pages;
Items to
Title |
Test
Details
English Sentence Matching
|
Expression |
\b(((["'/,&%\:\(\)\$\+\-\*\w\000-\032])|(-*\d+\.\d+[%]*))+[\s]+)+\b[\w"',%\(\)]+[.!?](['"\s]|$)
|
Description |
Focused on scraping English sentences from HTML/Java (without having to parse).
Correctly matches the vast majority of English sentences. There are undoubtedly a number of cases which do not match, but I felt they were oblique enough to be omitted.
(Surely, the fellow that commented on this script had some sentences not match, but the example he describes does correctly match, and I provide it as the fourth example.)
Cheers
|
Matches |
This is an example. | "Matching sentence." | A 9.7% increase over the last 10+ years. | The vehicle has a 5.2 liter, four-wheel drive engine.
|
Non-Matches |
Class.Function
|
Author |
Rating:
Scotty
|
Displaying page
of
pages;
Items to