$didreg » History » Version 2
Per Amundsen, 08/12/2015 06:56 PM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *$didreg([name],id,regex,[N])* |
||
4 | |||
5 | Returns the number of the line that matches the regular expression, with the search starting at line N. |
||
6 | |||
7 | *Parameters* |
||
8 | [name] - If specified, name of the dialog otherwise [[$dname]] from the current [[Scripting_Events|event]] is used. (optional) |
||
9 | id - Id of the dialog item. |
||
10 | regex - The regular expression to perform. |
||
11 | 2 | Per Amundsen | [N] - If N = 0, number of matches, otherwise the Nth match. (optional) |