Pattern
\d+\.\d+
Java string
\\d+\\.\\d+
Developer Tools
Escape a raw regex pattern for Java, JavaScript, Python, Go, and other source languages in your browser, reducing double-backslash mistakes when embedding patterns in code.
Favorite this tool
No favorite storage mode has been selected.
Quick actions
Copy this tool URL or open the system share sheet on a supported device.
开发工具
Escape a raw regex pattern for Java, JavaScript, Python, Go, and other source languages in your browser, reducing double-backslash mistakes when embedding patterns in code.
/.../ ,直接输入单纯的 Pattern 捕获公式本体。
Pattern
\d+\.\d+
Java string
\\d+\\.\\d+
String literals need another escaping layer for backslashes. This tool adds that layer for the target language.
Usually enter only the pattern body. Add delimiters and flags separately for the target language.
Tools
Continue with another translated tool for a nearby task.
Regex Tester
Test JavaScript regular expressions with live highlighting, match counts, capture groups, flag toggles, and built-in pattern presets. Matching runs locally in your browser.
Regex Highlight Tester
Test JavaScript regular expressions in your browser with native RegExp. Supports flags such as i, g, and m, highlights matches, and shows capture groups with offsets for debugging email, crawler, and validation rules.