develooper Front page | perl.perl6.users | Postings from November 2019

words and separators question

Thread Next
From:
ToddAndMargo via perl6-users
Date:
November 28, 2019 13:52
Subject:
words and separators question
Message ID:
e3cd1b1d-56e1-5d83-83e5-180a60c02140@zoho.com
Hi All,

I have a situation where I can see two different strings:

     "xxx      yyyy       zzz"
     "avcde    fg hi      jklmx"

"fg hi" only has one space in the middle.

All the words have multiple spaces between them.

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?

Many thanks,
-T

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About