in reply to Split string in groups with non white space using regex

Brother thanos, in accordance with lao tzu ch.2 i would do `perldoc -f split` and then print join( '-', split( /\|/, $test, -1) ), "\n";
  • Comment on Re: Split string in groups with non white space using regex

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 14:12 UTC

    Hello lapazzo,

    Thank you for the time and effort. The script is working perfectly but in my case I can only apply a regex I can not use split.

    Thanks again for your time and effort.

    BR / Thanos

    Seeking for Perl wisdom...on the process of learning...not there...yet!