Quiz time -- "euronum" edit

Kenneth Brody kenbrody at bestweb.net
Tue Aug 16 10:06:14 PDT 2005


Quoting GCC (Tue, 16 Aug 2005 12:44:16 -0400):
[...]
> > Quiz time!  (I hope everyone studied.)
> >
> > I recently posted the following edit:
> >
> >     euronum   \ N N N euron2 | N N euron2 | N euron2
> >     euron2    [{ <.> N N N }] ( <,00> @ | "," NUM NUM )
[...]
> >     Why wouldn't the following, simpler, edit work?
> >
> >         euronum   \ N N N euron2 | N N euron2 | N euron2
> >         euron2    [{ <.> N N N }] <,> NUM NUM
> >
> >     And, how does the "corrected" version above fix the problem?
> >
> In your new example, the @ sign insures that ,00 is the end of the field
> when not present and the edit adds it.

The "<,> NUM NUM" of the bad version will also supply ",00" if not
present.  (Remember, NUM is "accept a digit or supply a zero.)  Try
it with "123456" and see for yourself.

But, you're on the right track.  (How does the bad version fail?)

--
KenBrody at BestWeb dot net        spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com


More information about the Filepro-list mailing list