Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-27-2008, 01:47 PM   PM User | #1
umen242
Regular Coder

 
Join Date: Jan 2008
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
umen242 is an unknown quantity at this point
Looking for text matching algorithm /patterns

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
umen242 is offline   Reply With Quote
Old 09-27-2008, 07:20 PM   PM User | #2
oracleguy
Rockstar Coder


 
Join Date: Jun 2002
Location: USA
Posts: 9,042
Thanks: 1
Thanked 322 Times in 318 Posts
oracleguy is a jewel in the roughoracleguy is a jewel in the roughoracleguy is a jewel in the rough
Look into using regular expressions.
__________________
OracleGuy
oracleguy is offline   Reply With Quote
Old 09-28-2008, 06:27 AM   PM User | #3
umen242
Regular Coder

 
Join Date: Jan 2008
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
umen242 is an unknown quantity at this point
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
umen242 is offline   Reply With Quote
Old 09-28-2008, 06:29 AM   PM User | #4
oracleguy
Rockstar Coder


 
Join Date: Jun 2002
Location: USA
Posts: 9,042
Thanks: 1
Thanked 322 Times in 318 Posts
oracleguy is a jewel in the roughoracleguy is a jewel in the roughoracleguy is a jewel in the rough
Quote:
Originally Posted by umen242 View Post
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.
__________________
OracleGuy
oracleguy is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:10 AM.


Advertisement
Log in to turn off these ads.