Hey Lucas, Glad to hear things are coming together :-) The dot is a special character in regular expressions, so to match it exactly (instead of applying it's special meaning) you add a backslash in front of it. For example, this first line doesn't match the dot, but the second one does: var pattern = /[^a-z0-9&\'"#\-\/<>]/ig; var pattern = /[^a-z0-9&\'"#\-\/<>\.]/ig;
↧