Here's the string I'm using and the display of this string can be rearrange in any other and in my case, I'm only interested in getting the first parenthesis text and putting the remaining text on its on line..
For example,
(test network) or test(section memory) or test(section storage)
Ideal output:
test section network
or test(section memory) or test(section storage)
Here's the perl code I attempt to use to accomplish this goal.
while(<readline>)
{
$_ =~ s/^\(test (.*)\)(.*)/test section $1\n$2/gi;
}
The output does not match the ideal output I'm looking for.