in reply to How can group these strings

How can group these words? Seems the problem is after \n

What does that mean? Please specify with code, use use Data::Dump; to generate sample data

my $input = "blah Letter A blah ..\n bla \n"; my $wantedOutput = " .... what you want here ... \n";

Replies are listed 'Best First'.
Re^2: How can group these strings
by arasu (Initiate) on Apr 24, 2012 at 09:16 UTC
    perl -p -e 's/(.*)(\n)(.*)/$1$3/g' text
    --Thiru "There is a solution for all problems but we need to find a direction"