正規表示式測試
實時高亮並顯示匹配詳情,測試正規表示式。
在您的瀏覽器中執行。您的檔案不會離開裝置。 瞭解如何驗證
…
使用方法
- 1選擇設定
填寫資訊或選擇您需要的選項。
- 2檢視結果
更改任何內容時,預覽會立即更新。
- 3下載或儲存
將結果儲存到您的裝置。不會向伺服器傳送或儲存任何內容。
About this tool
Build and test regular expressions with JavaScript syntax. Matches are highlighted in your text and listed with their position and groups. Set flags such as g, i, m, s, u and y. Good for learning and for checking patterns before using them in code.
When to use it
Test regular expressions with live highlighting and match details, before you use them in code.
Tips
Start simple and add parts. Use flags such as g and i. Watch for greedy matches.
Privacy
Everything runs in your browser, so your data is not uploaded or stored.
獲得最佳結果的提示
開始之前請花一點時間閱讀選項,並先用一個小例子試用工具。一切都在您裝置的瀏覽器中執行;您輸入或新增的任何內容都不會被上傳,關閉標籤頁會清除所有內容。如果看起來不對,請重新整理頁面重試,或使用本頁的報告連結告訴我們出了什麼問題。如果結果仍然看起來不對,請每次只更改一個值,看看哪個輸入影響最大。如果您還會再用,請收藏此頁。
要點
- 分類: 文件
- 在瀏覽器中執行,無需註冊,無需上傳。
- 您輸入的資訊保留在裝置上。
- 提供多種語言。
- 內容最後稽核日期:
常見問題
Which regex flavour is used?
JavaScript, the one used in browsers and Node.js.
Why do I see an error?
The pattern is not valid. The message tells you what is wrong, such as an unclosed bracket.
Which flavour is used?
JavaScript regular expressions.
Can I see groups?
Yes, capture groups are listed for each match.