Extracting the last word in a string
- From: robboll <robboll@xxxxxxxxxxx>
- Date: Sun, 6 Jan 2008 14:21:07 -0800 (PST)
What is the best method of extracting the last word in a string?
Example Table/Field1:
Field1
There once was a time
The old man sat
Two peas in a pod
One bird in the hand
function to extract the last word:
FunResult
time
sat
pod
hand
If it were the first word it would be: mid(Field1,1,instr(1,field1,"
"))
Thanks for any suggestions!
RBollinger
.
- Follow-Ups:
- Re: Extracting the last word in a string
- From: Ken Halter
- Re: Extracting the last word in a string
- Prev by Date: Re: Coding a save button
- Next by Date: Re: Extracting the last word in a string
- Previous by thread: Re: Coding a save button
- Next by thread: Re: Extracting the last word in a string
- Index(es):