diff --git a/guide/english/javascript/tutorials/invert-regular-expression-matches-with-javascript/index.md b/guide/english/javascript/tutorials/invert-regular-expression-matches-with-javascript/index.md index 902efee3e3..1dafc4e73c 100644 --- a/guide/english/javascript/tutorials/invert-regular-expression-matches-with-javascript/index.md +++ b/guide/english/javascript/tutorials/invert-regular-expression-matches-with-javascript/index.md @@ -3,4 +3,6 @@ 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. \ No newline at end of file +Use`/\W/gi`; to match everything that isn't a-z, A-Z, 0-9, or the _ (underscore) in the string. + +You can invert any match by using the uppercase version of the selector `\s` versus `\S` for example.