Hi Bob,

>this is a candidate for storing as a separate
>script library element with your name on it.
>
>set it up so we can call
>do %simple_re.r
>from within wiki.r
>
>if you dont get to it
>by the weekend, then I will.

Thanks. I'd like to test it a little more thoroughly, though. I wrote it
rather late last night and only tested it against the examples you
supplied. I'd rather try out a few more combinations.

>>5. You don't specify whether the front and end anchors ("^" and "$"
>>respectively) must appear at the beginning (or end) of the string. Neither
>>do you mention whether not ("?!") must appear at the beginning of the
>>string. I assume that your example indicates that this is an implied rule.
>>
> for #5 I can live with requiring at least one or the other.

It's easy enough to remove the line that regulates that. Will make the code
even shorter (and one less line of code to cause a bug ;-).

> I am not sure if negate binds outward (?! or inward ?!(
> in the re library of perl. it feels outward.
> it can appear anywhere ahead
> of some other subgroup but I do not know of
> more complicated uses than up front once so I will
> leave that one alone too. 

I just checked and it appears that the correct notation is (?! for
negation. I think I'll change that as well, while I'm at it.

I'll (try) to 
>set it up so we can call
>do %simple_re.r
>from within wiki.r

over the weekend. (I'll probably be calling you for instructions!)


;- Elan >> [: - )]

Reply via email to