in reply to Re: what does this regex do?
in thread what does this regex do?

It won't match anything, because the '/' is part of the pattern, and is followed by the beginning-of-string anchor.

Caution: Contents may have been coded under pressure.

Replies are listed 'Best First'.
Re^3: what does this regex do?
by muba (Priest) on Nov 07, 2005 at 22:22 UTC
    Quote from self: in a eval statement probably, I don't know

    eval " [...] s${regexpand}foobar/; [...] ";
    This code wil validly substitute any of those three words at the beginning of a string and before a word boundary with 'foobar'. I see no reason for doing this but it is perfectly valid.
    Unless I'm completely wrong of course :p
      Oh, I see. When you said "use this as a regexp", you meant "use part of it as a regexp and part of it as a delimiter." Thanks for clarifying that.

      Caution: Contents may have been coded under pressure.
        I am sorry I apparently was not clear enough :)