We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Use/\S/gi; to match everything that isn't a space in the string.
/\S/gi
You can invert any match by using the uppercase version of the selector \s versus \S for example.
\s
\S
New to Free Code Camp?
JS Concepts
JS Language Reference
Other Links