UNPKG

@syntropiq/py-regex

Version:

Python-compatible regular expressions for TypeScript/JavaScript, mirroring Python's re/regex API.

6 lines 270 B
/** * Escape special regex characters in a string to match Python's re.escape() behavior * This includes escaping spaces, which is crucial for Python regex compatibility */ export declare function escapeRegex(str: string): string; //# sourceMappingURL=escape.d.ts.map