Ok... this was a bit tough since I didn't have any documentation on me and I haven't done regexes in a while. 🙂 BUT I have prevailed.
Perl Regex:
if (preg_match("/(.{200}[.\?!]*[.\?!])/", $NEWS_BODY, $match)) {
echo $match[1];
}
print "<BR>\n";
PHP Regex (I think its POSIX, but don't quote me on that):
if (ereg("(.{200}[.\?!]*[.\?!])", $NEWS_BODY, $match)) {
echo $match[1];
}
Now, if you echo or print what these regex functions return, you will not get the string, but rather the number of characters that matched it.
-Philip