Quiz time -- "euronum" edit
GCC
gccconsulting at comcast.net
Tue Aug 16 09:44:16 PDT 2005
> -----Original Message-----
> From: filepro-list-bounces at lists.celestial.com
> [mailto:filepro-list-bounces at lists.celestial.com] On Behalf
> Of Kenneth Brody
> Sent: Tuesday, August 16, 2005 10:00 AM
> To: filePro_mailing_list
> Subject: Quiz time -- "euronum" edit
>
> 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 )
>
> This takes numbers and puts them in the European style, where
> digits are separated by periods and the decimal is a comma.
> For example:
>
> 123.456.789,01
>
> My questions to you are:
>
> 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.
Richard Kreiss
GCC Consulting
More information about the Filepro-list
mailing list