email edit
Jay R. Ashworth
jra at baylink.com
Sat Nov 10 10:40:38 PST 2007
On Sat, Nov 10, 2007 at 12:54:44PM -0500, Kenneth Brody wrote:
> 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.
* matches nothing? That's not what my 5.0 help says; it says "matches
any single character".
Oh yeah: I always forget: filePro treats all fields as space padded on
the right to the full length of the field. I need { not-a-space } at
the end there.
<sigh>
Cheers,
-- jra
--
Jay R. Ashworth Baylink jra at baylink.com
Designer The Things I Think RFC 2100
Ashworth & Associates http://baylink.pitas.com '87 e24
St Petersburg FL USA http://photo.imageinc.us +1 727 647 1274
More information about the Filepro-list
mailing list