String.find problem

When I try to do


My program outputs 1 rather than 10. Is . some kind of special char (so an escape char is needed) or just a default return value because of a failed search? thanks for any replies :slight_smile:

I think it might be a special character… Try %. as the pattern.

Thanks @JakAttak :slight_smile:

@Coder, not a problem :slight_smile: