Regex 測試器:快速上手指南
第一次使用就能成功所需的全部內容:該貼上什麼、哪個選項真正重要、以及如何讀懂結果。
使用方法
- 開啟工具,將內容貼上到左側輸入框。
- 只調整任務真正需要的選項——多數情況下預設值就是正確的。
- 在右側檢視結果,輸入時結果會即時更新。
- 用「複製」取走結果,或用「下載」儲存為檔案。
範例
Try email pattern.
輸入
user-2026@mail.com and admin@sub.example.co.uk
輸出 — 搜尋結果
<p class="tb-note">2 matches</p><table class="tb-table"><tr><th>#</th><th>Match</th><th>Index</th></tr><tr><td>1</td><td><code>user-2026@mail.com</code></td><td>0</td></tr><tr><td>2</td><td><code>admin@sub.example.co.uk</code></td><td>23</td></tr></table><pre class="ex-io"><mark>user-2026@mail.com</mark> and <mark>admin@sub.example.co.uk</mark></pre>
執行
說明
Live JavaScript regex testing with match groups highlighted.
相關工具
正規表示式取代工具Apply regex replacements with $1 capture references.常用正規表示式庫Ready-made patterns for email, URL, phone, dates and more.Base64 編碼器Encode text, JSON, URLs or files to Base64, standard or URL-safe.URL 編碼器Percent-encode URLs or single query components.Base64 解碼器Decode Base64 (standard or URL-safe) back to text or bytes.SHA-256 雜湊產生器Compute the SHA-256 digest — the standard for modern integrity checks.