40 lines
670 B
TypeScript
40 lines
670 B
TypeScript
/**
|
|
*
|
|
* @privateRemarks
|
|
*
|
|
* example directly translated from the api docs and is untested
|
|
*
|
|
* I also don't know if javascript's regex will work
|
|
*
|
|
* @example
|
|
*
|
|
* let r = new Regex("^(test123)"),
|
|
* s = "test123 abcd 345345",
|
|
* m = r.search(r, s)
|
|
*
|
|
* if (m.count > 0)
|
|
* ui.notify_above_map(m.matches[1], "Lua regex", 140)
|
|
*
|
|
* @public
|
|
*/
|
|
declare class RegexResult {
|
|
|
|
/**
|
|
* only for testing,
|
|
*
|
|
* @param type "debug"
|
|
*
|
|
* @example
|
|
*
|
|
* new Feat("debug")
|
|
*/
|
|
constructor(type: "debug");
|
|
|
|
readonly count: integer;
|
|
|
|
readonly matches: string[];
|
|
|
|
public __tostring(): string;
|
|
|
|
}
|