On 2019-11-28 06:47, The Sidhekin wrote:


On Thu, Nov 28, 2019 at 2:53 PM ToddAndMargo via perl6-users <perl6-users@perl.org <mailto:perl6-users@perl.org>> wrote:

    Is there a way I can tell words that I want "fg hi" to
    be considered one word?  A way to make the separator
    two or more spaces?


  I don't think you can pass a separator to words.   But you can specify a separator with split:  I assume .split(/\s\s+/) will DWYW.

  … or .comb(/\S[\s?\S]+/) … obviously not a very readable choice in this instance, mind …


Eirik


Hi Eirik,

Thank you!.  I will play with it!

-T

Reply via email to