...

View Full Version : Looking for text matching algorithm /patterns



umen242
09-27-2008, 01:47 PM
Hello all
i have task to process many text files (already done ) and to look into each text file
few almost repetitive sentences that differs in 5 worlds from each other
my question is there any officiants method to search matching text
for example i have to match the this sentence with 3 variants marked here with
$$$$
"Hello my name is $$$$ and im working in $$$$ and i love to do $$$$"
Thanks

oracleguy
09-27-2008, 07:20 PM
Look into using regular expressions.

umen242
09-28-2008, 06:27 AM
Thanks for the fast reply , one more question if i may
is there any common way to convert very long strings to unique key name
i need it to store indications in set on every string that i already found

oracleguy
09-28-2008, 06:29 AM
Thanks for the fast reply , one more question if i may
is there any common way to convert very long strings to unique key name
i need it to store indications in set on every string that i already found
Do you want a unique constant length string to represent some arbitrary length string of data? If so look into hashing algorithms such as MD5 or SHA1.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum