A string function to get a substring

i have a text box in whihc i enter free text in form of
1500,my sql,12:12:12
1800, windows ,1:1:1
and so on

now i want to retrive and add just the 1st parameter(ie 1500+1800…) of
the string
pls tell me how can i do tht
is thr any string handling function to get the substring

Prashant J. wrote:

i have a text box in whihc i enter free text in form of
1500,my sql,12:12:12
1800, windows ,1:1:1
and so on

now i want to retrive and add just the 1st parameter(ie 1500+1800…) of
the string
pls tell me how can i do tht
is thr any string handling function to get the substring

If its a set number of characters you could use:

string[0…3]

Or use String.scan with the appropriate regexp - check the
documentation.

Cheers
Luke