Project

General

Profile

$didreg » History » Revision 3

Revision 2 (Per Amundsen, 08/12/2015 06:56 PM) → Revision 3/4 (Per Amundsen, 08/13/2015 10:24 AM)

_Added in 1.9.0_ 

 *$didreg([name],id,regex,[N])* 

 Returns the number of the line that matches the [[Scripting_Regex|regular expression]], regular expression, with the search starting at line N. 

 *Parameters* 
 [name] - If specified, name of the dialog otherwise [[$dname]] from the current [[Scripting_Events|event]] is used. (optional) 
 id - Id of the dialog item. 
 regex - The [[Scripting_Regex|regular expression]] regular expression to perform. 
 [N] - If N = 0, number of matches, otherwise the Nth match. (optional)