テキスト差分比較ツール
Compare two text blocks line by line using the LCS algorithm. Supports ignoring whitespace and case。無料、プライベート、100%クライアントサイド。
Local only
最近の履歴
履歴はまだありません
使い方
- Paste the original text into the input box.
- 追加 a separator line containing only ---.
- Paste the modified text below the separator.
- Toggle ignore whitespace or ignore case if needed, then read the diff.
このツールを使うタスク
編集距離(Levenshtein)を計算する
編集距離は、ある文字列を別の文字列に変換するのに必要な挿入・削除・置換の最小回数を測る指標です。スペルチェックやあいまい検索に使われます。 タスク
Levenshtein 距離を計算する
Levenshtein 距離は、ある文字列を別の文字列に変換するのに必要な最小の編集回数(挿入・削除・置換)を測る指標です。スペルチェックやあいまい検索に使われます。 タスク
2 つのテキストを比較して差分を表示する
テキストの 2 つのバージョンを差分比較し、行単位・文字単位の挿入、削除、変更を確認します。 タスク
テキスト間のコサイン類似度を計算する
コサイン類似度はテキストベクトル間の角度を測り、意味的な類似度を示します。検索、クラスタリング、レコメンデーションに使われます。 タスク
単語数・文字数を数えてテキストを分析する
テキストブロックの単語数、文字数、行数、読了時間、頻度分析を取得します。 タスク
正規表現パターンをステップごとにデバッグする
サンプル入力に対するテスト、マッチの可視化、パターンがマッチする/しない理由の理解によって正規表現をデバッグします。フラグを正しく使いましょう。 タスク
正規表現をパフォーマンス向けに最適化する
遅い正規表現は ReDoS(Regular Expression Denial of Service)を引き起こします。破壊的バックトラッキングの特定と修正、アトミックグループ、パターンのアンカーを学びましょう。 タスク
正規表現の量指定子(*、+、?、{n,m})を使う
量指定子はパターンの繰り返し回数を指定します。貪欲、怠惰、絶対的マッチングを学び、破壊的バックトラッキングを避けましょう。 タスク
このツールを使うパイプライン
よくある質問
- How do I provide two texts to compare?
- Enter the original text, then a line containing only ---, then the modified text. The tool computes a line-level diff between the two blocks.
- What do the prefix symbols mean?
- Lines prefixed with + are added in the second text, - are removed from the first text, and a space prefix means the line is unchanged.
関連ツール
ソート&重複削除ツール
Sort lines alphabetically, numerically, by length, or naturally; deduplicate; reverse or shuffle。無料、プライベート、100%クライアントサイド。 ツール
文字列リバースツール
Reverse text by characters, lines, or words. Unicode-safe for emoji and surrogate pairs。無料、プライベート、100%クライアントサイド。 ツール
ワードカウント
Count characters, words, lines, sentences, paragraphs, byte size, and estimate reading time。無料、プライベート、100%クライアントサイド。 ツール