Files
types-ts-2take1/structs/RegexResult.d.ts
2021-06-27 20:27:03 -05:00

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;
}