[egenix-users] How to create nested search pattern with mxTextTools?
Pekka Niiranen
krissepu at vip.fi
Mon Jun 10 00:51:12 CEST 2002
M-A, Correct me if I am wrong, but does that mean:
I can reuse the parser returned by Simpleparse as subtable
and use "+AppendMatch" in that new merged table ?
The SimpleParse does not support all the commands of mxTextTool.
"M.-A. Lemburg" wrote:
> Pekka Niiranen wrote:
> > I am searching nested strings that are limited (and include)
> > with ?- and ! -signs.
> >
> > I have created a nested EBNF-search pattern with Simpleparse-1.0 module
> > for mxTextTools. The problem is: I am interested only on matched strings
> >
> > and cannot use flag (true or not ?) "AppendMatch" with SimpleParse.
> >
> > What is the mxTextTool equivalent of the EBNF -notation below:
> >
> > declaration := a,(match,a)*
> > match := '?',a,(match,a)*,'!'
> > <a> := [-_a-z0-9A-Z:. ]* #Not returning this line
> >
> > in case of a string "aa?BB?CC!DD!ee?FF!gg"
> > it should return:
> >
> > [?BB?CC!DD!, ?CC!, ?FF!]
> >
> > Any help appreciated,
>
> You should have a look at the SubTable command. It would allow
> you to do this.
>
> --
> Marc-Andre Lemburg
> CEO eGenix.com Software GmbH
> ______________________________________________________________________
> Company & Consulting: http://www.egenix.com/
> Python Software: http://www.egenix.com/files/python/
> Meet us at EuroPython 2002: http://www.europython.org/
>
> _______________________________________________________________________
> eGenix.com User Mailing List http://www.egenix.com/
> http://lists.egenix.com/mailman/listinfo/egenix-users
More information about the egenix-users
mailing list