Regular Expression to match "\\r"
<p>I'm having trouble writing a regex that matches these inputs: <br>
1.<code>\\r</code><br>
2.<code>\\rSomeString</code>
<br>
I need a regex that matches <code>\\r</code></p>

<p>You can fine-tune your <em>regular expressions</em> on-line, e.g. at <a href="https://regex101.com/#python" rel="nofollow">this site</a>.</p>

python regex