in reply to Re^3: how to search and replace the match with specific number of times in a string
in thread how to search and replace the match with specific number of times in a string
Also, you don't need to escape the * in the replacement string.$s =~ s/\*(?!\n)/*\n/;
|
|---|