regexp-manager
regexp-manager copied to clipboard
type-safe regexp pattern builder
```typescript new RegExpBuilder().range('numbers'); // [0-9] new RegExpBuilder().range(1, 8); // [1-8] new RegExpBuilder().range('lowercase'); // [a-z] new RegExpBuilder().range('uppercase'); // [A-Z] new RegExpBuilder().range('alphabet'); // [a-zA-Z] ``` Wouldn't creating this method be better than...
('01a-bbbb-bbbb', {a: [0-1], b: [0-9]}) Don't you want to make it like this?
```typescript // The name is not fixed. type a = ConvertPattern; // Capturing ```
The creation of a regular expression can also be determined after accessing the DB. Therefore, it is necessary to operate the builder pattern after all asynchronous functions are completed externally,...