On Wed, Aug 13, 2003 at 02:48:11PM -0400, Herhuth, Ron wrote:
> I have an array of a submitted text string (called $submittedTextString).
> And I have an array of common words (called $commonWordArray).
>
> I'm trying to use Regex to:
These aren't necessarily regex problems.
> 1. Remove any wor
I have an array of a submitted text string (called $submittedTextString).
And I have an array of common words (called $commonWordArray).
I'm trying to use Regex to:
1. Remove any words from $submittedTextString that appear in
$commonWordArray (about a hundred words).
2. Remove any numbers from $
Commenting on the replacing-numbers part, the simplest solution is probably
to do a regex replace to replace 0-9 with a blank string. This would cut the
entire search-replace to one line of code.
Regards, Adam.
"Bob Hall" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Wed, Aug 1