in reply to Re^6: Reg expression to replace URLs with Anchor tags in Tweets
in thread Reg expression to replace URLs with Anchor tags in Tweets

Actually preg_replace in PHP uses Perl regex.
No, it doesn't. It really doesn't. It might use "PCRE", which despite the name, is not Perl, nor even very Perl Compatible.

This is why you're getting pushback. You are operating from a false claim.

-- Randal L. Schwartz, Perl hacker

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

  • Comment on Re^7: Reg expression to replace URLs with Anchor tags in Tweets