Correction! That should be: /htt(p|ps):\/\/.*?\/.*\.com$/iand slightly more efficient (doesn't capture backreference): /htt(?:p|ps):\/\/.*?\/.*\.com$/i
Or maybe more simply and readably: m'https?://.*/.*\.com$'iBut 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