On Feb 21, Mark Anderson said: >The first example doesn't work if the word is followed by a punctuation >mark. The second example doesn't get rid of the space, which is fine for >HTML, but not for other uses.
Well, you have to define the word-removal. If you're removing the word at the beginning of a sentence, TRAILING spaces must be removed, and the next letter capitalized! If you're removing the word in the middle or at the end of a sentence, LEADING spaces must be removed. That's a bit complex, no? -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. [ I'm looking for programming work. If you like my work, let me know. ] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]