in reply to Regex Parsing Chars in a Line
The . metacharacter matches spaces as well. From your input data it would appear that any hyphen surrounded by spaces is what you want to separate on? For example qr/\s\-\s/
You might also look at using Text::CSV_XS for the parsing. See https://metacpan.org/pod/Text::CSV_XS#sep for how to use multiple characters.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex Parsing Chars in a Line
by kel (Sexton) on Nov 26, 2019 at 04:49 UTC | |
by swl (Prior) on Nov 26, 2019 at 07:00 UTC | |
by AnomalousMonk (Archbishop) on Nov 26, 2019 at 08:38 UTC |