Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jan 2008
    Posts
    130
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Look into using regular expressions.
    OracleGuy

  • #3
    Regular Coder
    Join Date
    Jan 2008
    Posts
    130
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #4
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •