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

Not for this one, but thanks. See above reply. Code reuse between Perl and PHP. ;-)
  • Comment on Re^2: Reg expression to replace URLs with Anchor tags in Tweets

Replies are listed 'Best First'.
Re^3: Reg expression to replace URLs with Anchor tags in Tweets
by GrandFather (Saint) on Apr 19, 2009 at 01:55 UTC

    Oh, it wasn't clear that you were asking a php question so it wasn't clear that Perl answers were not appropriate - which is odd given that this is a Perl site. Perhaps you forgot to mark your question as off topic?


    True laziness is hard work
      Ok. I get it. No more Perl regex questions on Perl monks. Is it really so awful that I can use the same regex in PHP as in Perl?

      Sorry to have made everyone so angry.
        Why can't you go to cpan and copy the regex?
        Because PHP has PHP regex, not Perl regex. This site is perlmonks, about Perl, not PHP. Go visit phpmonks.org :)

        -- 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.