Tiny Online Tools logoTiny Online Toolssearchツールを検索…grid_viewすべてのツール
ホームchevron_right開発者ツールchevron_right正規表現分割正規表現分割

正規表現分割

ブラウザ上で正規表現を使ってテキストを分割します。

関連ツール

正規表現抽出

正規表現抽出

ブラウザ上で正規表現を使ってテキストから一致部分を抽出します。

正規表現置換

正規表現置換

ブラウザ上で正規表現を使ってテキストを置換します。

PDF 分割

PDF 分割

PDF ファイルを個別ページまたはページ範囲に分割します。

CSV 分割

CSV 分割

CSVファイルを行数、均等分割、または列値で複数のパートに分割します。

WebPをPNGに変換

WebPをPNGに変換

WebP画像をPNG形式に変換します。

PDF メタデータ表示

PDF メタデータ表示

著者、日付、寸法などを含む PDF の詳細なメタデータを表示します。

SVGをJSXに変換

SVGをJSXに変換

SVGマークアップを正しいcamelCase属性を持つReact JSXコンポーネントに変換します。

apps

もっと見る

無料オンラインツールの全コレクションを見る。

Split Text by Complex Patterns, Not Just Delimiters

String splitting is ubiquitous in text processing, but simple delimiter-based splitting (splitting by comma, space, or newline) isn't enough for messy real-world data. What if you need to split on whitespace variations, line breaks with different フォーマットs, or custom patterns? This Regex Split Tool lets you specify regex patterns to split text, giving you power far beyond simple delimiter functions.

Instead of rigid text.split(","), write a pattern that splits on any variation—multiple spaces, tabs mixed with spaces, specific punctuation sequences, or anything regex can describe.

Three Text Processing Modes

Extract Matches: Find all strings matching your pattern and return them as a list.

Split by Pattern: Divide text into chunks wherever your pattern matches. Instead of splitting on a literal character, split on a pattern. For example, split on one or more whitespace characters, or on line breaks that may be \n, \r\n, or \r.

Replace Matched Content: 変換 text by replacing every match with new content. Use capture groups to rearrange matched data.

Why This Beats Simple String Splitting

Built-in string splitting functions are rigid:

  • split(",") only splits on commas
  • split("\\n") only splits on newlines
  • No pattern flexibility

With regex, you split on complex conditions:

  • "One or more spaces or tabs": \\s+
  • "Whitespace OR comma": [,\\s]+
  • "Line breaks of any type": \\r?\\n
  • "Word boundaries": \\b

This is powerful for parsing logs, cleaning data, and handling variations in text フォーマットting.

Real Data Wrangling Scenarios

Log Parsing: Split log entries by pattern to extract fields. Many logs have inconsistent spacing or フォーマットting; regex patterns handle variations automatically.

CSV Variant Parsing: If your CSV-like data uses mixed delimiters or inconsistent spacing, split by a regex pattern instead of a fixed character.

Text Cleanup: Remove or split on multiple types of whitespace, line breaks, or フォーマットting characters that vary across different sources.

Field Extraction: Split structured text (like SQL output or command-line tool output) that uses patterns rather than fixed delimiters.

Language & Text Processing: Split sentences, paragraphs, or tokens using linguistic patterns rather than simple punctuation.

Full Regex Support

Use all JavaScript regex 機能:

  • Character classes ([a-z], \\d, \\s)
  • Quantifiers (+, *, {n,m})
  • Alternation (|)
  • Grouping and capture (())
  • Anchors (^, $, \\b)
  • Escape sequences

With all standard flags:

  • g (global): Process all matches
  • i (case-insensitive): Ignore case
  • m (multiline): Line anchors behavior
  • s (dotAll): Dot matches newlines

Local ブラウザ Processing

All splitting happens in your ブラウザ. No server アップロードs, no external processing. You can split sensitive logs, customer data, or internal documents without privacy concerns.

Copy & Use Results

Splitting results display as a clean list. Copy them to your クリップボード or paste directly into your next processing step.