π The fast, Pythonic way to build MCP servers and clients.
---
title: regex
sidebarTitle: regex
---
# `fastmcp.server.transforms.search.regex`
Regex-based search transform.
## Classes
### `RegexSearchTransform` <sup><a href="https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp_slim/fastmcp/server/transforms/search/regex.py#L20" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>
Search transform using regex pattern matching.
Tools are matched against their name, description, and parameter
information using Pydantic's Rust regex engine with case-insensitive
matching. Lookarounds and backreferences are not supported.
A search stops after about a second and returns the matches found so
far, so a costly pattern cannot hold the worker for long.