正規表現テスターRegex Tester
作った正規表現が、思った通りに合うか確かめたいときに。When you want to check that a regular expression matches as you expect.
入力した内容は外部に送信されません。すべて、この端末の中だけで処理します。What you enter is never uploaded. Everything is processed on this device.
- 1パターンを書くWrite a pattern
- 2テストする文章を入れるEnter the test text
- 3結果を見るSee the matches
完成Done
🔒 ファイルは外部のサーバーに送信されません。この端末のブラウザの中だけで安全に処理されます。🔒 Your files are never sent to an external server. Everything is processed safely inside this browser.
PDFのミカタが役に立ったら、応援してもらえるとうれしいです。If PDF Mikata was useful, a small tip would mean a lot.
応援する(300円)Send a tip (¥300)ほしい物リストで応援Send a gift (Amazon wishlist)あわせてよく使われているツールTools often used together
2つの文章の違いを調べるCompare Two Texts (Diff)2つの文章の違いを、色つきで見る。See the differences between two texts in color.
文字数カウント(エントリーシート・レポート用)Character Counter (for Applications and Reports)文字数・行数・原稿用紙の枚数を数える。Count characters, lines and manuscript sheets.
重複した行を消す・並べ替えるRemove Duplicate Lines and Sort a Listリストの重複を消して、並べ替える。Remove duplicates and sort a list.
PDFを結合Merge PDFs複数のPDFを、1つに。Combine PDFs into one.
使い方
- 「正規表現のパターン」を入れます。
- 「テストする文章」に、試したい文章を入れます。
- 見つかった場所と件数が表示されます。
仕組み
- ブラウザのJavaScriptの正規表現を使います。
- フラグの「i」は大文字小文字を区別せず、「m」は行ごと、「s」は「.」が改行にも合うようになります。
注意
- フラグを書かなくても、すべての一致を探します。
- とても複雑なパターンは、動きが遅くなることがあります。
よくある質問
入力した内容は外部に送信されますか?
いいえ。処理はすべて、お使いの端末のブラウザの中で行われます。
置換には$1のような書き方が使えますか?
はい。「置換後の文字」に$1や$&を書くと、一致した部分に置き換わります。
How to use
- Enter a pattern in "Regular expression pattern".
- Enter the text you want to try in "Test text".
- The number and positions of matches are shown.
How it works
- It uses the JavaScript regular expressions of your browser.
- Flag "i" ignores case, "m" works line by line, and "s" lets "." match line breaks.
Notes
- Even without flags, all matches are searched for.
- Very complex patterns can run slowly.
FAQ
Is what I enter sent anywhere?
No. Everything is processed inside the browser on your device.
Can I use $1 in the replacement?
Yes. Writing $1 or $& in "Replacement" puts the matched parts in.
PDFのミカタが役に立ったら、応援してもらえるとうれしいです。If PDF Mikata was useful, a small tip would mean a lot.
応援する(300円)Send a tip (¥300)ほしい物リストで応援Send a gift (Amazon wishlist)