<div dir="ltr"><div class="gmail_quote">On 17 February 2011 12:33, Martin B. Smith <span dir="ltr">&lt;<a href="mailto:smithmb@ufl.edu">smithmb@ufl.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div class="im">On 2/16/2011 3:50 AM, Amos Shapira wrote:<br>
&gt; When I saw regexp used in collectd configuration file (using the tail<br>
&gt; plugin) it was double quoted, ie \\ for \.<br>
<br>
</div>Hi Amos,<br>
<br>
Thank you for the tip. That made it so my regexp did start matching. I<br>
couldn&#39;t tell if the vertical pipe needed the double-escape or not.<br>
<br>
Could you also explain why only my first &lt;Match&gt; actually gets results<br>
given the output:<br>
<div class="im"><br>
&gt; active_users_count|3|3|<br>
&gt; active_users_5mins|0|0|<br>
&gt; active_users_30mins|1|1|<br>
&gt; active_users_60mins|1|1|<br>
<br>
</div>My matches look like:<br>
<div class="im"><br>
  &lt;Match&gt;<br>
    Regex &quot;active_users_count\\|([0-9]+)&quot;<br>
    DSType &quot;GaugeLast&quot;<br>
    Type &quot;my_users&quot;<br>
    Instance &quot;active_users_count&quot;<br>
  &lt;/Match&gt;<br>
</div>  &lt;Match&gt;<br>
    Regex &quot;active_users_5mins\\|([0-9]+)&quot;<br>
    DSType &quot;CounterSet&quot;<br>
    Type &quot;my_users&quot;<br>
    Instance &quot;active_users_5mins&quot;<br>
  &lt;/Match&gt;<br>
  &lt;Match&gt;<br>
    Regex &quot;active_users_30mins\\|([0-9]+)&quot;<br>
    DSType &quot;CounterSet&quot;<br>
    Type &quot;my_users&quot;<br>
    Instance &quot;active_users_30mins&quot;<br>
  &lt;/Match&gt;<br>
<br>
It seems weird that only the first match now returns data. Does only one<br>
match apply per Page URL?<br></blockquote><div><br>Sorry I can&#39;t answer that, I&#39;m not familiar with this plugin.<br><br>Have you though of trying to use a separator which is not a special regexp character, thus avoiding the issue with &quot;|&quot;?<br>

<br>--Amos<br><br></div></div></div>