James Stroud wrote:
[snip]
> I think I'm having some network problems. I'll try again. Also the
> previous "attempt" had a typo (perhaps a freudian slip).
Also this time you replied to the wrong thread :-)
>
> ",".join(some_list).
>
> By the way, don't name your own objects with the names of bui
[EMAIL PROTECTED] wrote:
> Hi, I have a list of strings. And I want to find the subset which
> matches a particular regular expression.
>
> import re
> ll = ('a', 'b', 's1', 's2', '3s')
> p = re.compile('^s.*')
> newList = filter(lambda s: p.match(s), ll)
or
newList = [s for s in ll if p.match(
[EMAIL PROTECTED] wrote:
> Hi, I have a list of strings. And I want to find the subset which
> matches a particular regular expression.
>
> import re
> ll = ('a', 'b', 's1', 's2', '3s')
> p = re.compile('^s.*')
> newList = filter(lambda s: p.match(s), ll)
>
> I suppose there should be simple funct
[EMAIL PROTECTED] wrote:
> Hi, I have a list of strings. And I want to find the subset which
> matches a particular regular expression.
>
> import re
> ll = ('a', 'b', 's1', 's2', '3s')
> p = re.compile('^s.*')
> newList = filter(lambda s: p.match(s), ll)
>
> I suppose there should be simple func
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> Hi, I have a list of strings. And I want to find the subset which
> matches a particular regular expression.
>
> import re
> ll = ('a', 'b', 's1', 's2', '3s')
> p = re.compile('^s.*')
> newList = filter(lambda s: p.match(s), ll)
>
> I suppose there