in reply to Split string in groups with non white space using regex
"...I am not really good with regex..."
#MeToo - but didn't you miss a group:
#!/usr/bin/env perl use strict; use warnings; use feature qw(say); my $string = q'Thanos1983+|Thanos1983+|Thanos1983+'; $string =~ m/(.+)\|(.+)\|(.+)/; say for ($1,$2,$3); __END__
Untested. And i hope i didn't miss the point.
Best regards, Karl
«The Crux of the Biscuit is the Apostrophe»
perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Split string in groups with non white space using regex
by thanos1983 (Parson) on Jan 04, 2018 at 12:12 UTC | |
by karlgoethebier (Abbot) on Jan 04, 2018 at 12:41 UTC |