> Just an implementation detail, but I think it would be advisable to tie it > to the start of the string, making the case of failed matches much quicker; > I believe it produces the same results: > print(s:find('^.*()'..w)) Excellent point!