$didreg: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m better wording |
||
Line 7: | Line 7: | ||
* Regex is the regular expression to match. | * Regex is the regular expression to match. | ||
* N is the line to start your search from. If none is given, all lines are searched (default 1). | * N is the line to start your search from. If none is given, all lines are searched (default 1). | ||
* Returns: The line | * Returns: The number of the line which matches the given regular expression. | ||
[[Category:Dialogs]] | [[Category:Dialogs]] |
Latest revision as of 17:17, 10 May 2008
Didreg searches a dialog element for a line that matches the specified regular expression.
$didreg(name,id,regex[,N])
- Name is the name of the loaded dialog.
- ID is the id of the dialog element you are searching.
- Regex is the regular expression to match.
- N is the line to start your search from. If none is given, all lines are searched (default 1).
- Returns: The number of the line which matches the given regular expression.