Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Find substring based on words and not in charachters (Updated.)

by choroba (Cardinal)
on Dec 02, 2014 at 17:16 UTC ( [id://1109008]=note: print w/replies, xml ) Need Help??


in reply to Re: Find substring based on words and not in charachters (Updated.)
in thread Find substring based on words and not in charachters

I'd compare word count instead of length.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
  • Comment on Re^2: Find substring based on words and not in charachters (Updated.)

Replies are listed 'Best First'.
Re^3: Find substring based on words and not in charachters (Updated.)
by BrowserUk (Patriarch) on Dec 02, 2014 at 17:22 UTC

    The OP certainly could go that way, but I see two problems with it:

    1. Deciding upon a definition for a "word".
    2. Are a few short words more meaningful than 1 less long one?

      Eg. "on the way to" -v- "the Riechstag Bureau"?


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
Re^3: Find substring based on words and not in charachters (Updated.)
by GotToBTru (Prior) on Dec 02, 2014 at 20:40 UTC

    OP states he is looking for longest string; he wants to avoid getting parts of words, such as the last 'b' the lcss algorithm finds.

    1 Peter 4:10

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1109008]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2024-04-26 01:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found