TypeScript adaptation of Swift Regex Builder API.
npm install ts-regex-builder
import { buildRegex, oneOrMore } from 'ts-regex-builder';
// /(Hello)+ World/
const regex = buildRegex(oneOrMore('Hello '), 'World');
See the contributing guide to learn how to contribute to the repository and the development workflow.
See the project guidelines to understand our core principles.
MIT
- Swift Regex Builder API docs
- Swift Evolution 351: Regex Builder DSL
- ECMAScript Regular Expression BNF Grammar
Made with create-react-native-library