I've been a professional C, Perl, PHP and Python developer.
I'm an ex-sysadmin from the late 20th century.
These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
use .match() in Javascript to search for the symbols.
Nitpick: if you want to search for an occurrence of something by regex in Javascript, you can use the search method. match is for retrieving matching patterns (possibly more than one). You can use match if you like, but it's not exactly the same thing.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nitpick: if you want to search for an occurrence of something by regex in Javascript, you can use the
search
method.match
is for retrieving matching patterns (possibly more than one). You can usematch
if you like, but it's not exactly the same thing.