Skip to main content

Ensure content matches a provided regular expression. This can be used to validate content such as email addresses, phone numbers, and more.

Project description

guardrails-ai-regex-match

Ensure content matches a provided regular expression. This can be used to validate content such as email addresses, phone numbers, and more.

Installation

pip install guardrails-ai-regex-match

This validator ships local models. After installing, run the post-install step to download them:

python -m guardrails_ai.regex_match.post_install

Usage

from guardrails import Guard
from guardrails_ai.regex_match import RegexMatch

guard = Guard().use(RegexMatch)

License

MIT — © Guardrails AI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

guardrails_ai_regex_match-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

guardrails_ai_regex_match-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file guardrails_ai_regex_match-0.1.0.tar.gz.

File metadata

File hashes

Hashes for guardrails_ai_regex_match-0.1.0.tar.gz
Algorithm Hash digest
SHA256 851a73b6317977d6dd70e8533ca3f0ec0a628f59646bcc7194dcbf6a6e56467e
MD5 38f150f213d47548af0ca38f8e79c81b
BLAKE2b-256 166c54550c7a8a04d36b43517f9c22c4dbba510893efe696741ca8b8fdc4b80e

See more details on using hashes here.

File details

Details for the file guardrails_ai_regex_match-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for guardrails_ai_regex_match-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce51f0e0e662cbc9e90bb5278db0062b037adb5a4bc3603f8c66a6c10b57e328
MD5 2980f13388229c827fdf74f62d240bcb
BLAKE2b-256 bd254ae89acaecaecbbf245435819e68f47d5250cc1271b0c11558603d8faff3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page