Issues with the Java 8 linebreak RegEx escape character in Eclipse
<p>I want to parse a String formatted like stated below with a regular expression in my method, however even though online RegEx tools like RegExr show that my expression should match it doesn't.</p>

<p>The expression I'm using is <code>(@(\\d+))[(\r\n)\n](((0|1){"+width+"}[(\r\n)\n]){"+height+"})</code>, where <code>width</code> and <code>height</code> are integer values for the required width and height of the text blocks.</p>

<p>The text blocks I want to retrieve from my file are formatted as follows:</p>

<pre><code>@200
0000000000
0000011001
1100100000
0101001101
1110001110

@500
0000000000
0000011001
1100100000
0101001101
1110001110

etc.
</code></pre>

<p>(Here, <code>width</code> would be 10 and <code>height</code> 5)</p>

<p>Wanted to use the Matcher.find() method to retrieve each of those blocks, but the expression won't even find anything.</p>

<p>I suspect there is a problem with the way I'm handling line breaks, but when I want to try and use the new Java 8 \R universal linebreak escape character Eclipse shows the error "Invalid escape sequence".</p>