Correction! That should be:

/htt(p|ps):\/\/.*?\/.*\.com$/i

and slightly more efficient (doesn't capture backreference):

/htt(?:p|ps):\/\/.*?\/.*\.com$/i

Or maybe more simply and readably:

   m'https?://.*/.*\.com$'i

But the .* things really should stop on something reasonable like > or \s or the like. Otherwise you will get hits on

   http://my/furball.org which is a dot.com


       Loren


Reply via email to