[thelist] ASP: First 100 words in a record

Ken Kogler ken.kogler at cph.org
Wed Jun 19 10:52:00 CDT 2002


> the synopsis used to be the first x characters of the article.

After a bit of reflection, the first x characters might just be a better way
of doing this, rather than the first x words. Doesn't help that it's a LOT
easier to do, of course... :)

> if you want 100 words instead, i can't see any other way than:

> split() the string on a space
> keep only first 100 array items
> join() with a space

> but i'd think this is a nightmere as far as resources go.

Which is exactly why I posted to the list - I couldn't see any way around
it.

Thanks!

-Ken




More information about the thelist mailing list