Scott David Daniels wrote:
> ru...@yahoo.com wrote:
>> Nick Dumas wrote:
>>> On 7/23/2009 9:23 AM, Mark Lawrence wrote:
scriptlear...@gmail.com wrote:
> For example, I have a string "#a=valuea;b=valueb;c=valuec;", and I
> will like to take out the values (valuea, valueb, and valuec).
ru...@yahoo.com wrote:
Nick Dumas wrote:
On 7/23/2009 9:23 AM, Mark Lawrence wrote:
scriptlear...@gmail.com wrote:
For example, I have a string "#a=valuea;b=valueb;c=valuec;", and I
will like to take out the values (valuea, valueb, and valuec). How do
I do that in Python? The group method wi
Nick Dumas wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Agreed. Two string.split()s, first at the semi-colon and then at the
> equal sign, will yield you your value, without having to fool around
> with regexes.
>
> On 7/23/2009 9:23 AM, Mark Lawrence wrote:
>> scriptlear...@gmail.c
2009/7/23 scriptlear...@gmail.com :
> For example, I have a string "#a=valuea;b=valueb;c=valuec;", and I
> will like to take out the values (valuea, valueb, and valuec). How do
> I do that in Python? The group method will only return the matched
> part. Thanks.
>
> p = re.compile('#a=*;b=*;c=*;'
"Mark Lawrence" wrote in message
news:mailman.3588.1248355389.8015.python-l...@python.org...
> scriptlear...@gmail.com wrote:
>> For example, I have a string "#a=valuea;b=valueb;c=valuec;", and I
>> will like to take out the values (valuea, valueb, and valuec). How do
>> I do that in Python? Th
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Agreed. Two string.split()s, first at the semi-colon and then at the
equal sign, will yield you your value, without having to fool around
with regexes.
On 7/23/2009 9:23 AM, Mark Lawrence wrote:
> scriptlear...@gmail.com wrote:
>> For example, I have
scriptlear...@gmail.com wrote:
For example, I have a string "#a=valuea;b=valueb;c=valuec;", and I
will like to take out the values (valuea, valueb, and valuec). How do
I do that in Python? The group method will only return the matched
part. Thanks.
p = re.compile('#a=*;b=*;c=*;')
m = p.match(
On Jul 22, 7:45 pm, "scriptlear...@gmail.com"
wrote:
> For example, I have a string "#a=valuea;b=valueb;c=valuec;", and I
> will like to take out the values (valuea, valueb, and valuec). How do
> I do that in Python? The group method will only return the matched
> part. Thanks.
>
> p = re.compi
For example, I have a string "#a=valuea;b=valueb;c=valuec;", and I
will like to take out the values (valuea, valueb, and valuec). How do
I do that in Python? The group method will only return the matched
part. Thanks.
p = re.compile('#a=*;b=*;c=*;')
m = p.match(line)
if m: