Home
Tester
Reference
About
Pattern
(?<!^\S*\s*)\s+
Input
1 2
3
4
5
6
1 2 3 4 5 6
Options
Ignore Case
Ignore Whitespace
Explicit Capture
Culture Invariant
Singleline
Multiline
Right To Left
ECMA Script
Start from position:
Max matches to find:
Replacement
Replace matches with...
Click the
context
tab to see replacements.
Regex Info
Table
Context
Split List
5
matches found in about
2
milliseconds.
Show Permalink
Permalink
Index
Position
Matched String
Replacement
0
4
whitespace
empty string
1
6
whitespace
empty string
2
8
whitespace
empty string
3
10
whitespace
empty string
4
14
whitespace
empty string
1 2
3
4
5
6
1 2
3
4
5
6
empty string