非字母数字清理器
从文本中移除所有非字母数字的特殊字符,提供灵活的保留选项
### 非字母数字清理器
这个工具可以帮助你:
1. **移除特殊字符**:删除所有非字母数字的字符
2. **保留标点符号**:可选择保留常见的标点符号(.,!?;:等)
3. **保留空白**:可选择保留空格、制表符和换行符
4. **保留中文**:可选择保留中文字符(CJK统一表意文字)
5. **自定义保留**:添加任何其他需要保留的字符
**使用场景:**
- 清理用户输入数据
- 准备文本用于URL或文件名
- 移除不需要的格式字符
- 简化文本用于处理
- 过滤敏感字符
API 文档
请求端点
POST /zh/api/tools/non-alphanumeric-cleaner
请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| text | textarea | 是 | - |
| preservePunctuation | checkbox | 否 | Keep .,!?;:()[]{}"' |
| preserveSpaces | checkbox | 否 | Keep spaces, tabs, and line breaks |
| preserveChinese | checkbox | 否 | Keep CJK Unified Ideographs (U+4E00 to U+9FFF) |
| customPreserve | text | 否 | Add any other characters you want to preserve |
响应格式
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}
文本:
文本
AI MCP 文档
将此工具添加到您的 MCP 服务器配置中:
{
"mcpServers": {
"elysiatools-non-alphanumeric-cleaner": {
"name": "non-alphanumeric-cleaner",
"description": "从文本中移除所有非字母数字的特殊字符,提供灵活的保留选项",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=non-alphanumeric-cleaner",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
你可以串联多个工具,比如:`https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`,最多20个。
如果遇见问题,请联系我们:[email protected]