01-06-2009, 08:53 PM
ok i got this is what i got from what you told me, but still dont know how to get the whole line a word is on. I believe what i have wont work if the number is first in the line either. Not too worried as it seems only 1 or 2 are in that order from a quick scroll through.
Im not 100% sure how i come up with this code because i do not understand how these delimeters work full yet all i know is it passed the test.
Function Function3
Im not 100% sure how i come up with this code because i do not understand how these delimeters work full yet all i know is it passed the test.
Function Function3
str d.all(256 0 0)
d.set(1 0 33); d[160]=1
d[34]=1; d['<']=1; d['>']=1
str s = "john doe 1 park lane timbucktoo, Austria ( 0800 0000000 ) "
lpstr s1 s2 s3
int i
int nt = tok(s s1 4 "()" 8 s3)
for(i 1 nt 0)
,str s5=s2
,s5.findreplace(")" "" 2 " .")
,s5.findreplace("(" "" 2 " .")
,s5.trim
,out s5
,end