or download this
$line = qq~I'm looking for the end of a sentence, where possible. How
+ever, in some cases, I'll need to go with a non-conventional "end" to
+ it, such as:
"Here's a quote by a famous person which is supposed to exceed forty w
+ords and is therefore required to be set apart as a separate, indente
+d paragraph per APA style." (Famous, 1999)
...
(?:\n|\r|\z|$) #LAST PRIORITY
)
/<span class="s">$1$2</span>/gmx;