in reply to Re: PCRE: Repeating Subpattens After Intervening Characters
in thread PCRE: Repeating Subpattens After Intervening Characters

Wow, you guys are amazingly quick to reply and helpful in those replies. That said, since I need to do this outside of Perl, in a pure PCRE expression, neither this nor ikegami's post is helpful.

Seeing as how I just looked and found no PCREmonks, however, does anyone know if such a forum actually exists and I'm just bad at Googling, or if a forum with such a purpose exists under some different name/URL?

Thanks Again,
Alex
  • Comment on Re^2: PCRE: Repeating Subpattens After Intervening Characters

Replies are listed 'Best First'.
Re^3: PCRE: Repeating Subpattens After Intervening Characters
by ikegami (Patriarch) on Sep 14, 2005 at 22:22 UTC
    Wow, you guys are amazingly quick to reply and helpful in those replies. That said, since I need to do this outside of Perl, in a pure PCRE expression, neither this nor ikegami's post is helpful.

    I disagree. We didn't use anything Perl-specific. For example, here it is in JScript:

    var pat = "\\d\\s+foo"; var regexp = "(" + pat + ")[^\r\n]*(" + pat + ")"; var re = new RegExp(regexp); re.exec(some_string);

    (Untested)