in reply to regex regexen

Could it be that the "\]" in

    /.*?[^\]/[$regex_option_list]* #slash delimited regex
is confusing the parser? You have the meta-delimiters set to escaped square brackets, so that would be the first place I'd look.

Just my $.02.

--
tbone1
Ain't enough 'O's in 'stoopid' to describe that guy.
- Dave "the King" Wilson

Replies are listed 'Best First'.
Re: Re: regex regexen
by mooresan (Novice) on Oct 31, 2003 at 00:15 UTC
    This was the problem, thank you... I was having trouble thinking through some of the escaping. It does need to be [^\\]\/ at the end. For the curious: I am implementing and "ed" replacement that will make use of perl6ish regexen and a number of other features. This is a piece from my grammar parser. the real regex part looks like:
    m<(?::[$regex_options]*)?[?/].*?[^\\][?/]>