>Hi Bob,
>
>I just realized that there are two bugs in my code and a bug in your specs:
thank you for the correction.
>Here's the fixed and improved function and rules:
excellent!
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.
>>>>
3. Your use of a single caret character "^" is not accepted by REBOL (as<<<<
Andrew pointed out), because it is REBOL's string escape character. I
therefore replaced it by two caret characters, "^^", where the first caret
escapes the second caret, thereby restoring it as a simple character with
no special functionality.
4. You don't specify suffix and prefix. I assume that they separated by a
dot character ".".
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.
#3 I agree that I did not write ^^ when I should have.
for #5 I can live with requiring at least one or the other.
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.
{-----}
[EMAIL PROTECTED]
