regexp-coder
Version:
A Javascript/Typescript RegExp Coder
21 lines (20 loc) • 667 B
TypeScript
export declare class RegExpLib {
/**
* Get expression of email addresses
* (Email Address Spec)[https://tools.ietf.org/html/rfc5322#section-3.4]
*/
static getEmailAddressRegExp(): RegExp;
/**
* Test a string with a specific expression.
* @param exp the expression
* @param value the tested string
*/
static test(exp: RegExp, value: string): boolean;
/**
* `column(separator(column))*`
* For ABA pattern, e.g. `abc,def,ghi`
* @param column the column expression
* @param separator the separator
*/
static aba(column: string | RegExp, separator: string): RegExp;
}