RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
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: The rating for this expression. Scotty
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials