On May 19, 2004, at 7:21 PM, meb wrote:
My regex looks something like this:
(Save 1st 20 words):
/^(\w|\W){20}/g
^ matches only at the beginning of the string while the /g modifier
tries to create a global search matching all occurrences. Matching all
of what can only be in one place is pointles
On Thu, 2004-05-20 at 01:21, meb wrote:
> Maybe this is because I'm a newbie, or maybe it's because I'm trying to
> modify RSS text. This is a perl script for a web site.
>
> In any case, there's a feed that includes the author at the end of the
> (looong) description. I'd like to limit the decsri
Maybe this is because I'm a newbie, or maybe it's because I'm trying to
modify RSS text. This is a perl script for a web site.
In any case, there's a feed that includes the author at the end of the
(looong) description. I'd like to limit the decsription to the first 20
words, add an ellipsis (...)