Advertisement
Advertisement
| 07.09.2008 at 08:49AM PDT, ID: 23550720 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: |
<pre><?php
$text = preg_replace('/\s+/',' ', strip_tags(".
<p>Is the following story true? You be the judge! Is it a tale? Maybe. Or is it fact? Help us decide!</p>
<p>“My dear Mr. Bennet,” said his lady to him one day, “have you heard that Netherfield Park in London is let at last?”</p>
<p>Mr. Bennet replied that he had not.</p>
<p>“But it is,” returned she; “for Mrs. Long has just been here, and she told me and Jane all about it.”</p>
<p>Mr. Bennet made no answer. His wife cried impatiently. Even the kind Dr. Smith knew better. Mr. Bennet was so odd a mixture of quick parts, sarcastic humour, reserve, and caprice, that the experience of three-and-twenty years living in England had been insufficient to make his wife understand his character. Her mind, like her sister Lizzy's, was less difficult to develop.</p>
"));
// Thanks ddrudik and ozo
$pattProper='/[A-Z][a-z]{1,2}\.\s+(?:[A-Z][a-z]+\s*)*|(?<![.?!] )(?<!;)(?:[A-Z][a-z]+\s*)+/';
preg_match_all($pattProper, $text, $proporNouns);
var_dump($proporNouns);
?>
</pre>
|