eturn "Yello Gold"
Thanks for the push in the right direction.
Al
-Original Message-
From: Michael Traher [mailto:[EMAIL PROTECTED]
Sent: Monday, September 26, 2005 10:59 AM
To: CF-Talk
Subject: Re: String Search
sorry should be replace(oldstring,"Similar","
sorry should be replace(oldstring,"Similar","","ALL")
On 9/26/05, Michael Traher <[EMAIL PROTECTED]> wrote:
>
> Hi Al,
>
> You could use the replace function to replace the words you do not require
> with an empty string.
>
>
>
> you may need to drop this into a loop and repeat for all the words
Hi Al,
You could use the replace function to replace the words you do not require
with an empty string.
you may need to drop this into a loop and repeat for all the words to be
removed.
can use trim(newstring) to remove any trailing spaces.
MikeT
On 9/26/05, Aldon <[EMAIL PROTECTED]> wrote:
ilto:[EMAIL PROTECTED]
Sent: Friday, September 23, 2005 2:27 PM
To: CF-Talk
Subject: RE: String Search
You said you needed to find the first instance of a space in a string, but
your example showed finding the 3rd instance of a string.
Which is it?
-Original Message-
From: Aldon [ma
>>The string is dynamic so the value changes!
So will the value returned by find(" ", string)
An alternative would be listFirst (string, " ")
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any sp
Sent: Friday, September 23, 2005 12:12 PM
Subject: Re: String Search
>I think Aldon wants to return everything before the second space, correct?
> So just two words with a space between them?
>
> Maybe something like this - looping over the string and flagging
> occurences
>
ay, September 23, 2005 11:22 AM
Subject: RE: String Search
> The string is dynamic so the value changes!
>
> -Original Message-
> From: Aldon Moore [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 23, 2005 2:16 PM
> To: CF-Talk
> Subject: String Search!!!
You said you needed to find the first instance of a space in a string, but
your example showed finding the 3rd instance of a string.
Which is it?
-Original Message-
From: Aldon [mailto:[EMAIL PROTECTED]
Sent: Friday, September 23, 2005 1:22 PM
To: CF-Talk
Subject: RE: String Search
The string is dynamic so the value changes!
-Original Message-
From: Aldon Moore [mailto:[EMAIL PROTECTED]
Sent: Friday, September 23, 2005 2:16 PM
To: CF-Talk
Subject: String Search
How do I search a string for the first space " " between characters?
"This sh
Don't you mean converted to "This"? left(string, find(" ", string) -
1) should do it.
cheers,
barneyb
On 9/23/05, Aldon Moore <[EMAIL PROTECTED]> wrote:
> How do I search a string for the first space " " between characters?
>
> "This should be so easy" converted to "This should"
>
>
--
Barney B
How do I search a string for the first space " " between characters?
"This should be so easy" converted to "This should"
~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and d
8, 2000 11:46 PM
To: CF-Talk
Subject: String Search???
Could someone please point me in a direction for this issue; I have =
notes stored in a field that are separated by a timestamp. The time =
stamp is added each time a new note is stored and then the field is =
updated with from one to as
g note? I would think possibly a =
string search from time stamp to time stamp?
Any assistance is appreciated.
Mike
--=_NextPart_000_0057_01C03179.7A092F40
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Could someone please poi
Woo-Woo! Thanks, guys!
-Kev
> -Original Message-
> From: Bob Silverberg [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 03, 2000 9:55 AM
> To: CF-Talk
> Cc: [EMAIL PROTECTED]
> Subject: RE: Javascript string search...
>
>
> Check out the indexOf() metho
Check out the indexOf() method of the string object. It does exactly what
you're looking for.
Bob
-Original Message-
From: Kevin Langevin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 03, 2000 9:51 AM
To: CF-Talk
Subject: Javascript string search...
Sorry if you're s
AM
To: CF-Talk
Subject: Javascript string search...
Sorry if you're seeing this post again, but I never saw it hit the list
yesterday...
I'm trying to find a Javascript command to search for a chunk of text inside
of a string. I've used substring before, but I'm trying to find
Sorry if you're seeing this post again, but I never saw it hit the list
yesterday...
I'm trying to find a Javascript command to search for a chunk of text inside
of a string. I've used substring before, but I'm trying to find something
that will let me find, for example, the text 'oft' in 'softw
alk <[EMAIL PROTECTED]>
Date: Monday, October 02, 2000 4:08 PM
Subject: Javascript string search question...
>Anyone know how to do a text string search in Javascript? I've used
>substring before, but I'm looking for some way to do something akin to
>find() in CF, where it
> Subject: Javascript string search question...
>
>
> Anyone know how to do a text string search in Javascript? I've used
> substring before, but I'm looking for some way to do something akin to
> find() in CF, where it finds the substring ANYWHERE in the string to be
Try the indexOf() method of the string object.
Bob
-Original Message-
From: Kevin Langevin [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 02, 2000 2:17 PM
To: CF-Talk
Subject: Javascript string search question...
Anyone know how to do a text string search in Javascript? I've
2, 2000 1:17 PM
To: CF-Talk
Subject: Javascript string search question...
Anyone know how to do a text string search in Javascript? I've used
substring before, but I'm looking for some way to do something akin to
find() in CF, where it finds the substring ANYWHERE in the string to be
s
Anyone know how to do a text string search in Javascript? I've used
substring before, but I'm looking for some way to do something akin to
find() in CF, where it finds the substring ANYWHERE in the string to be
searched. Is it necessary to do a character by character search, or
22 matches
Mail list logo