Re: Index counting from the last char

2006-05-22 Thread Duncan Booth
gisleyt wrote: > I'd like to use the index-function to retrieve a certain char in a > string, but i need it to start counting from the last char. > > E.g. in the string. > > Foo-bar, foo foo-bar > > I want the latter hyphen to be returned when i do a index for '-'. Is > there any built in funct

Index counting from the last char

2006-05-22 Thread gisleyt
I'd like to use the index-function to retrieve a certain char in a string, but i need it to start counting from the last char. E.g. in the string. Foo-bar, foo foo-bar I want the latter hyphen to be returned when i do a index for '-'. Is there any built in function for this, I don't want to reve