On Mon, 8 Dec 2008, Dennis Hardy wrote:

What I would like to match on is URLs that do _not_ start with a third level
domain entry, and end with ".com", ".biz", ".info", etc.  For example,
"http://hello.com/"; (followed by more stuff) would match, and
"http://www.hello.com/{...}"; would _not_ match.

Some of the "dot only" checks I tried:

   (?<!\.)\w+?\.com
   ([^\.])\w+.*\.com\/

Again none of these work :-(

How about:
  /:\/\/[^.\/]+\.[^\.\/]+\//

--
 John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
 [EMAIL PROTECTED]    FALaholic #11174     pgpk -a [EMAIL PROTECTED]
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  Perfect Security and Absolute Safety are unattainable; beware
  those who would try to sell them to you, regardless of the cost,
  for they are trying to sell you your own slavery.
-----------------------------------------------------------------------
 7 days until Bill of Rights day

Reply via email to