;
}
/cfscript
- Original Message -
From: Claude Schneegans [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Saturday, May 15, 2004 8:27 PM
Subject: Re: Strip multiple words from string
H, I think I would use the replace function to first replace the first
occurrence of the word by some
What I'm attempting to do is stitch together a number of different strings
to create a keyword list.
Ah ah! Now this is a bit different.
Hmmm, to do this, I would
1º remove all puctuation marks, CR, LF etc,
2º consider the text as a space delimited list,
3º in a loop, create a new list by adding
Sorry should have said:
Is there a way to do this with 'OUT' having to specify the words/phrases to
search for
-Doug
- Original Message -
From: DougF [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Sunday, May 16, 2004 12:02 PM
Subject: Re: Strip multiple words from string
Thanks
-
From: DougF [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Sunday, May 16, 2004 1:28 PM
Subject: Re: Strip multiple words from string
Sorry should have said:
Is there a way to do this with 'OUT' having to specify the
words/phrases to
search for
-Doug
- Original Message
.
Thanks,
Doug
- Original Message -
From: Jim McAtee [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Sunday, May 16, 2004 1:03 PM
Subject: Re: Strip multiple words from string
If, as you said, you're just putting together a keyword list, then take
Claude's last suggestion.However
- Original Message -
From: DougF [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Sunday, May 16, 2004 2:52 PM
Subject: Re: Strip multiple words from string
Part of the difficulty is describing the problem... sometimes
the description evolves as unanticipated results materialize
- Original Message -
From: Jim McAtee [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Sunday, May 16, 2004 2:25 PM
Subject: Re: Strip multiple words from string
Just consider that there may be a big difference in the algorithm and the
processing time between the two approaches
Sometimes. But it's seldom that you'll find a solution to a problem that
you're unable to define.
May be, but sometimes it is much easier to find the solution first, then the problem ;-))
--
___
See some cool custom tags here:
Any suggestions how to strip multiple occurances of a short list (4-8) of words from a string. The first occurance of each word must be preserved at its position. Using CF5.
Thanks,
Doug
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
H, I think I would use the replace function to first replace the first occurrence of the word by some string unlikely to be found in the text,like say %*%*%*, then replace all remaining words by nothing, using all , then but back the word at the place %*%*%* is.
If you don't have too many
10 matches
Mail list logo