|Problems? Is your data what you think it is?|
Re^5: Splitting compound (concatenated) words )by BrowserUk (Pope)
|on May 17, 2012 at 00:24 UTC||Need Help??|
I will spend some time to understand this part print for grep defined(), $s =~ /^$re2$/;
Maybe this will help:
Note: I've increase the number of repetitions from 11 to 20 to allow for sentences with more words. The side effect of that is that the unmatched captures now return undef, so If I just printed out @found, I get this:
So I use grep to remove any undefined values:
Actually it needs print "$_\n" for grep defined(), $s =~ /^$re2$/; to print line-wise.
If you look at the first line of the code I posted: #! perl -slw, the l in the -slw has the affect of adding "\n" to print statements automatically. Saves me having to type them all the time.
I can send you a link to the tool, but I am not sure it's a right way to do it through the forum.
Just post the link as text, or wrap it in brackets: [ link here ] to make it an active link.
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.