in reply to Re: Tips on how to perform this regex query
in thread Tips on how to perform this regex query
Sorry roboticus, but what do you think running one of those 'edit distance' algorithms on the two strings will actually tell the OP?
To save time, I'll tell you. Ta-dah:
Which means what?
My best guess:
The best interpretation is that is a fuzzy measure of the difference in length of the two strings (actually 1069).
Which mean that a simple: print length( $bigstring ) - length( $smallstring ); would be more accurate and about a million times faster.
It doesn't tell him how different they are, nor where the best match occurs,
Not even if the shorter actually appears in the larger to any meaningful measure of the term.
|
|---|