Space before or after a number
- One character before
\s(?=\d)
- Unlimited characters before
\s+(?=\d)
- One character after
(?<=\d)\s
- Unlimited characters after
(?<=\d)\s+
Use [ ] instead of \s to match a space instead of [\r\n\t\f\v ]
general:regex:space_number
\s(?=\d)
\s+(?=\d)
(?<=\d)\s
(?<=\d)\s+
Use [ ] instead of \s to match a space instead of [\r\n\t\f\v ]