lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> So, I want to extract the word in this string whose limits surround
> the position clicked by the user. Is there some efficient way of
> searching for the beginning and end of a word around a given position
> that doesn't involve reversing the string or capturing all words until
> I find one whose limits enclose the initial position?

What is wrong with reversing the string ('string.reverse')?

-- Roberto