This question already has an answer here:
Good day guys! My problem is I need to find all return statements in a Javascript string input. I am using the regex below, it can find the return statements if it is on separate lines else it will cause an error (See image below)
I want to find it even on the same line (See image below)
Thank you in advance. Best regards!