RE: String Search!!!!

2005-09-28 Thread Aldon
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","

Re: String Search!!!!

2005-09-26 Thread Michael Traher
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

Re: String Search!!!!

2005-09-26 Thread Michael Traher
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:

RE: String Search!!!!

2005-09-26 Thread Aldon
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

Re: String Search!!!!

2005-09-23 Thread Claude Schneegans
>>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

Re: String Search!!!!

2005-09-23 Thread Josh Nathanson
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 >

Re: String Search!!!!

2005-09-23 Thread Josh Nathanson
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!!!

RE: String Search!!!!

2005-09-23 Thread Andy Matthews
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

RE: String Search!!!!

2005-09-23 Thread Aldon
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

Re: String Search!!!!

2005-09-23 Thread Barney Boisvert
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

String Search!!!!

2005-09-23 Thread Aldon Moore
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

RE: String Search???

2000-10-08 Thread Pete Freitag
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

String Search???

2000-10-08 Thread Mike Weaver
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

RE: Javascript string search...

2000-10-03 Thread Kevin Langevin
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

RE: Javascript string search...

2000-10-03 Thread Bob Silverberg
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

RE: Javascript string search...

2000-10-03 Thread Top-Link Tech (John Ceci)
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

Javascript string search...

2000-10-03 Thread Kevin Langevin
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

Re: Javascript string search question...

2000-10-02 Thread Jamie Keane
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

RE: Javascript string search question...

2000-10-02 Thread Geoffrey V. Brown
> 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

RE: Javascript string search question...

2000-10-02 Thread Bob Silverberg
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

RE: Javascript string search question...

2000-10-02 Thread Hayes, David
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

Javascript string search question...

2000-10-02 Thread Kevin Langevin
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