Re: Matching subrules
[email protected] (steve efner) Mon, 23 Jun 2003 14:30:48 -0700 (PDT)
| Newsgroups | perl.recdescent |
|---|---|
| Message-ID | <[email protected]> |
--- Peter van der Kamp <[email protected]> wrote: > I'm wondering why my grammar (see hereafter) accepts > > the following input: > medium='d' or medium='f' ant topic='t' > > while it should raise an error on 'ant'. > With tracing enabled you can see that it really does > > something with 'ant', except raising an error. > > my $grammar = q{ > Criteria:zoekVraag /\D/ > I'm not sure where you're going with that /\D/ terminal but I suspect changing that to a /\z/ to match only at the end of a string might fix your problem. __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com