Paul McGuire wrote:
> Steven Bethard wrote:
>> Within a larger pyparsing grammar, I have something that looks like::
>>
>> wsj/00/wsj_0003.mrg
>>
>> When parsing this, I'd like to keep around both the full string, and the
>> AAA_ substring of it, so I'd like something like::
>>
>> >>>
Dennis Lee Bieber wrote:
> On Sat, 20 Jan 2007 13:49:52 -0700, Steven Bethard
> <[EMAIL PROTECTED]> declaimed the following in comp.lang.python:
>
>> Within a larger pyparsing grammar, I have something that looks like::
>>
>> wsj/00/wsj_0003.mrg
>>
>> When parsing this, I'd like to keep aroun
Steven Bethard wrote:
> Within a larger pyparsing grammar, I have something that looks like::
>
> wsj/00/wsj_0003.mrg
>
> When parsing this, I'd like to keep around both the full string, and the
> AAA_ substring of it, so I'd like something like::
>
> >>> foo.parseString('wsj/00/wsj_
Within a larger pyparsing grammar, I have something that looks like::
wsj/00/wsj_0003.mrg
When parsing this, I'd like to keep around both the full string, and the
AAA_ substring of it, so I'd like something like::
>>> foo.parseString('wsj/00/wsj_0003.mrg')
(['wsj/00/wsj_0003.