RegEx - find and replace content between two tag which is at multiple location in same file
<p>I have a java file having @Start, @End tag multiple places. looking for Regex which can replace the code between these two tag (including tag)</p>

<pre><code>public class MyClass{ 
private String name; 
private String age; 

    @Start 
    private String address; 
    private String phoneNumber; 
    @End 
    -----------
    Some more code goes here
    ---------------

    @Start 
    private String pin; 
    private String amount; 
    @End 

    -----------
    Some more code goes here
    ---------------
}
</code></pre>

<p>I'm using google replacer plugin <a href="http://code.google.com/p/maven-replacer-plugin/" rel="nofollow">http://code.google.com/p/maven-replacer-plugin/</a> and below configuration in maven pom to replace the content</p>

<pre><code>&lt;configuration&gt;
..........
&lt;token&gt;@Start.*@End&lt;/token&gt;
&lt;value&gt;&lt;/value&gt;
&lt;regexFlags&gt;
&lt;regexFlag&gt;DOTALL&lt;/regexFlag&gt;
&lt;/regexFlags&gt;
.......
&lt;/configuration&gt;
</code></pre>

<p>I could replace the code between tag but it matches first @Start tag and last @End tag and removed everything between these two marker where as i want to replce the content only between two tag.</p>
