> For the complete documentation index, see [llms.txt](https://schema.js.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://schema.js.org/documents/string/regex.md).

# Regex

Checks if the given string matches the giver RegExp

```typescript
import Schema from "@rapidom/schema";

const Validator = Schema.string().regex(/^Hello/);
```
