hi
I use regex in javascript to validate submitted form inputs.
I know "\n" means "New line" and "\r" means "carriage return".
but I can't seem to find the actual difference between them when I build my regular expression validation in javascript.
looks like whenever an input of a form has a new line in it I can spot the new line by EITHER "\n" or "\r"
can you provide some kind of example of a string that has "\n" in it and another that has "\r" in it so I can tell the difference ?
thanks