# 🔮 Write readable regular expressions
The crate provides a clean and readable way of writing your regex in the Rust programming language:
| Without `pretty_regex` | With `pretty_regex` |
|
|
|
|
|
|
To convert a PrettyRegex into a regex from regex crate, you can call to_regex or to_regex_or_panic:
use pretty_regex::digit;
let regex = (digit() + ascii_alphabetic().optional()).to_regex_or_panic();
assert!(regex.is_match("3"));
$ claude mcp add pretty_regex \
-- python -m otcore.mcp_server <graph>