Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion I want a MultiSoupStrainer and WildSoupStrainer!
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
ssteinerX@gmail.com  
View profile  
 More options Feb 8 2010, 1:22 pm
From: "sstein...@gmail.com" <sstein...@gmail.com>
Date: Mon, 8 Feb 2010 13:22:04 -0500
Local: Mon, Feb 8 2010 1:22 pm
Subject: Re: I want a MultiSoupStrainer and WildSoupStrainer!
On Feb 8, 2010, at 12:52 PM, Zulq Alam wrote:

> That aside, you should be able to strain as you describe already:

> # MultiSoupStrainer
> strainer = SoupStrainer(name=['b','a','h1'])

This works great, thanks so much!

> # WildSoupStrainer
> import re
> strainer = SoupStrainer(name=re.compile(r'h.'))

I seem to just get back an unfiltered bucket of soup from using this strainer.  I'll have to poke around some more.  Maybe I have to make it into a callable?

Thanks,

S


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.