UNPKG

semantic-regexp

Version:

This is an implementation of the semantic expression of regular expression code

19 lines (18 loc) 541 B
/** * 创建一个正则表达式 * Create a RegExp * @param patternArray List of semantic functions * @param modeArray List of match mode * @returns RegExp */ export declare function creatRegExp(patternArray: Array<string>, modeArray: Array<string>): SRegExpFactory; /** * RegExp工厂类 * RegExp Factory class */ export declare class SRegExpFactory { regExpPattern: string; regExpMode: string | undefined; end: () => RegExp; constructor(patternArray: Array<string>, modeArray: Array<string>); }