in reply to Re: Finding short DNS names from long text
in thread Finding short DNS names from long text

You're correct, I left that (multiple results) out.

To be extremely specific, I want to mimic the vendor name part of the MITRE Common Platform Enumeration found on page 10 of http://cpe.mitre.org/files/cpe-specification_2.2.pdf

They deal with multiple results by using the shortest string. They also deal with saving ".com" or ".org" in certain cases.

It's certainly got it's shortcomings, but I want to sync up with http://nvd.nist.gov .

Yahoo::Search looks good!

  • Comment on Re^2: Finding short DNS names from long text

Replies are listed 'Best First'.
Re^3: Finding short DNS names from long text
by hossman (Prior) on Jul 13, 2009 at 01:22 UTC

    "To be extremely specific, I want to mimic the vendor name part of the MITRE Common Platform Enumeration found on page 10 of http://cpe.mitre.org/files/cpe-specification_2.2.pdf "

    FWIW: That was how you should have asked the question in the first place.

    Knowing only what 30 seconds of googling has told me about CPE, wouldn't the best way to mimic CPE's behavior be to directly use the Official CPE Database of names?

      Yes, it's easy to get the dictionary of vendor strings used in the database, but I just have all these long text strings of company names. Probably including a bunch of companies that aren't in the CPE database. If I get the mapping done, I'll just stick to CPE vendor strings.