Added in 1.9.0
Returns the number of the line that matches the regular expression, with the search starting at line N.
[name] - If specified, name of the dialog otherwise $dname from the current event is used. (optional)
id - Id of the dialog item.
regex - The regular expression to perform.
[N] - If N = 0, number of matches, otherwise the Nth match. (optional)