in reply to Re: the best way to separate a string into words
in thread the best way to separate a string into words

I'd go with the \W+ ... but I guess it all depends on how you define a word.

-derby
  • Comment on Re^2: the best way to separate a string into words

Replies are listed 'Best First'.
Re^3: the best way to separate a string into words
by jeffa (Bishop) on Jan 19, 2009 at 19:55 UTC

    I might too, but the OP defined words as "separated by space characters"

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)
    

      Doh! note to self ... read node fully

      -derby