mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-14 03:07:43 -05:00
234 B
234 B
title
| title |
|---|
| Invert Regular Expression Matches with JavaScript |
Use/\S/gi; to match everything that isn't a space in the string.
You can invert any match by using the uppercase version of the selector \s versus \S for example.