<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">That is exactly right. Filters in v1
accept python re compatible regex<strong>. <br>
<br>
</strong>You can take a look at the syntax here -
<a class="moz-txt-link-freetext" href="http://docs.python.org/2/library/re.html">http://docs.python.org/2/library/re.html</a><br>
<br>
On 02/27/2013 04:06 AM, Chris St. Pierre wrote:<br>
</div>
<blockquote
cite="mid:CAGwiO7aM_y2ojQMCkGDnnmT6L_cEYqkpjHSUf+OeBTDC=YQN2g@mail.gmail.com"
type="cite">
<pre wrap="">Odds are excellent that Pulp uses the python re.match() function,
which anchors the regex at the start of the string -- as if you had
prepended '^'. Try '.*-(foo|bar|baz)' instead.
On Tue, Feb 26, 2013 at 9:41 PM, Ryan Bowlby <a class="moz-txt-link-rfc2396E" href="mailto:rbowlby83@gmail.com"><rbowlby83@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I created a filter with the following regex, which didn't work:
pulp-admin filter create --id='test' --type=blacklist -p '-(foo|bar|baz)'
Basically exclude any packages that contain -foo or -bar or -baz in
the name. Can someone assist in determining where I went wrong? Pulp
1.1.11.
Thanks,
Ryan
_______________________________________________
Pulp-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/pulp-list">https://www.redhat.com/mailman/listinfo/pulp-list</a>
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Sayli Karmarkar
Software Engineer
Systems Management and Cloud Enablement
<a class="moz-txt-link-freetext" href="http://www.redhat.com">http://www.redhat.com</a>
</pre>
</body>
</html>