Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to evaluate an IP?

How can I determine if a string is an IP address? Either IPv4 or IPv6?

What is the least and most number of characters?

I assume this would be a regex answer.

like image 747
pek Avatar asked Sep 03 '08 19:09

pek


People also ask

How do you evaluate a patent value?

Conventionally, patent valuation can be performed using three main approaches – market approach, income approach, and cost approach. In the income approach, the value of a patent will be the current value of cash flow or cost savings that it will provide.

What is understood by IP valuation?

IP valuation is a process to determine the monetary value of subject IP. To be able to do the valuation of an IP asset, it must be separately identifiable. a. The IP asset must be subject to specific identification and a recognizable description.

How is intellectual property measured?

To track how ideas become intellectual property, you could measure: Time to complete (i.e., efficiency of) the invention disclosure process. Patent application costs. Quality of invention disclosures (number of iterations; prosecution costs; rate of issuance)

Why do we need valuation of IP?

Intellectual property valuation helps to determine not only the value of the IP, but the true value of the business as a whole. Because IP often represents the most valuable assets a business possesses, calculating an accurate valuation of the business depends on accurately valuing its intellectual property.


1 Answers

I've done this before, but I like Raymond Chen's post at:

http://blogs.msdn.com/oldnewthing/archive/2006/05/22/603788.aspx

Where he basically advocates using regexes for what they're good at: parsing out the tokens. Then evaluate the results. His example:

function isDottedIPv4(s)
{
 var match = s.match(/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/);
 return match != null &&
        match[1] <= 255 && match[2] <= 255 &&
        match[3] <= 255 && match[4] <= 255;
}

It's much easier to look at that and grok what it's supposed to be doing.

like image 73
Niniki Avatar answered Oct 03 '22 16:10

Niniki