returns another string, wich is a substring of s, starting @ 1 and running untill j: i and j may be negative, If j is absent, then it is assumed to be equal to -1 (wich is the same as the strings length). In particular, the call strsub(s,1,j) returns a prefix of s with the length j, and the call strsub(s, -i) returns a suffix of s with length i.

returns another string, wich is a substring of s, starting @ 1 and running untill j: i and j may be negative, If j is absent, then it is assumed to be equal to -1 (wich is the same as the strings length). In particular, the call strsub(s,1,j) returns a prefix of s with the length j, and the call strsub(s, -i) returns a suffix of s with length i.

The strsub(s,i,j) function extracts a piece of the string s, from the i-th to the j-th character inclusive. In Lua, the first character of a string has index 1. You can use also negative indices, which count from the end of the string: The index −1 refers to the last character in a string, −2 to the previous one, and so on. Therefore, the call strsub(s, 1, j) gets a prefix of the string s with length j; strsub(s, j, -1) gets a suffix of the string, starting at the j-th character (if you do not provide a third argument, it defaults to −1, so the last call could be written as strsub(s, j)); and strsub(s, 2, -2) removes the first and last characters of a string: If s is "[in brackets]", strsub(s, 2, -2) will be "in brackets".

The strsub(s,i,j) function extracts a piece of the string s, from the i-th to the j-th character inclusive. In Lua, the first character of a string has index 1. You can use also negative indices, which count from the end of the string: The index −1 refers to the last character in a string, −2 to the previous one, and so on. Therefore, the call strsub(s, 1, j) gets a prefix of the string s with length j; strsub(s, j, -1) gets a suffix of the string, starting at the j-th character (if you do not provide a third argument, it defaults to −1, so the last call could be written as strsub(s, j)); and strsub(s, 2, -2) removes the first and last characters of a string: If s is "[in brackets]", strsub(s, 2, -2) will be "in brackets".

yep, if you wanne find a string wich is always in the same place this is the best way 2 find it.strfind(data, "%$ConnectToMe") can even get the wrong result if you for example say $ConnectToMe in mainchat.if data = $ConnectToMe then strfind(data, "%$ConnectToMe") whill give a match.but strsub(data, 1,12) whill return plop