I just write them down; ,usually they work. I comment more complex RegExp by splitting up the parts of it in a comment, e.g. for a simple example:
// Matches cookies in document.cookie// $1: key `([^=]+)` one or more not `=`// separator `=`// $2: value `([^;]+)` one or more not `;`// Modifier 'g' (global)constcookieMatcher=/([^=]+)=([^;]+)/g;
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.
I just write them down; ,usually they work. I comment more complex RegExp by splitting up the parts of it in a comment, e.g. for a simple example: