title: repetition regex not working
body: <p>I want repeated comma <code>,</code> or repeated semi colon <code>;</code> to become single</p>
  
  <p>both should be independently processed, it should not matter which sequence or jumbling they are apearing, processing of one should not affect processing of other.</p>
  
  <p>so my test input is this and it should become like this (after -> )</p>
  
  <pre><code>,, -&gt; ,
  ,,, -&gt; ,
  ;; -&gt; ;
  ;;; -&gt; ;
  ,; -&gt; ,;
  ;, -&gt; ;,
  ,,;; -&gt; ,;
  ;;,, -&gt; ;,
  </code></pre>
  
  <p>my regex is <code>([,;]){2,}</code>
  and replacement is <code>$1</code> (I am actually using this in foxreplace in firefox, which is based on java, hence that terminology.</p>
  
  <p>but it is not working. it is just putting the first character as the single char output in each line, whatever other chars are there behind that.</p>
  
  <p><code>{2,} -&gt; 2</code> means it should not touch when there is a single occurence of either, no point replacing single occurence with single occurence.
  It should match only if either , or ; is coming 2 or more times at one place.</p>
  
  <p>I tried pipe also, to strictly take one of the two, but that also gives the same output.
  <code>([,|;]){2,}</code></p>
  
  <p>I tried escaping them also, <code>"\\</code> double blackshalsh in foxreplace, which gets converted to single backslash when foxreplace reads that"
  but no effect.</p>
  
  <p>What am I missing?</p>