Skip to main content
Glama
regex.md505 B
# Regex A regular expression. Can be used as a [show rule selector]($styling/#show-rules) and with [string methods]($str) like `find`, `split`, and `replace`. [See here](https://docs.rs/regex/latest/regex/#syntax) for a specification of the supported syntax. # Example ```example // Works with string methods. #"a,b;c".split(regex("[,;]")) // Works with show rules. #show regex("\d+"): set text(red) The numbers 1 to 10. ``` ## Constructor ### `regex` Create a regular expression from a string.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/FujishigeTemma/typst-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server