Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 149846

Find return statements using Javascript Regex in an input Javascript string [duplicate]

$
0
0

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!

Javascript Regex


Viewing all articles
Browse latest Browse all 149846

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>