Whitespace Trimmer
Matches leading and/or trailing whitespace.
- trim
Code
^\s+|\s+$
-> Usage:
(don't account for the quotation marks, it just to visualize whitespace)
"Hello World" ✗
" Hello World" ✓
"Hello World " ✓
" Hello World " ✓Matches leading and/or trailing whitespace.
^\s+|\s+$
-> Usage:
(don't account for the quotation marks, it just to visualize whitespace)
"Hello World" ✗
" Hello World" ✓
"Hello World " ✓
" Hello World " ✓