email edit

Kenneth Brody kenbrody at bestweb.net
Sat Nov 10 09:54:44 PST 2007


Quoting Jay R. Ashworth (Fri, 9 Nov 2007 23:06:30 -0500):

> I remember we dabbled at this last year, sometime, but I don't recall
> if we came up with a working edit.
>
> I have
>
> lhsc   <A | N | "_" | "-" | "+" | "%"
> lhs    <{lhsc}
> rhsc   <lhsc
> rhs    <{rhsc} "." {*}
> email  <lhs "@" rhs
>
> But rhs, which should not match "baylink.", unless I misunderstand the
> edit language rather badly after 20 years... does.
>
> {matches} are greedy, I think, and that's fine, but rhsc doesn't
> *match* a dot.  What am I missing, folks?

You are correct that rhsc doesn't match the dot, which is fine, because
rhs says that your string from rhsc must be followed by a dot.

That is:

     {rhsc} "." {*}

       {rhsc}  accepts "baylink"
       "."     accepts "."
       {*}     accepts the trailing spaces

     End-of-edit and end-of-field reached.  Edit passes.

-- 
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