[Pulp-list] filter regex?

Sayli Karmarkar skarmark at redhat.com
Wed Feb 27 20:41:18 UTC 2013


That is exactly right. Filters in v1 accept python re compatible regex*.

*You can take a look at the syntax here  - 
http://docs.python.org/2/library/re.html

On 02/27/2013 04:06 AM, Chris St. Pierre wrote:
> 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 <rbowlby83 at gmail.com> wrote:
>> 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
>> Pulp-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/pulp-list
>
>


-- 
Sayli Karmarkar

Software Engineer
Systems Management and Cloud Enablement
http://www.redhat.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20130227/7b005282/attachment.htm>


More information about the Pulp-list mailing list