Hi,
I have a question regarding Perl's regular expressions. I have the string:
$str = "Availability: Immediate.\n Title: The quantitative properties of log \n normal distributions.\n Author: John S. Peters\n";
and I need to write a regular expression to remove the newlines \n from the contents of the Title only (not the ones before or after the value of Title). I have been experimenting with:
$str =~ s/(Title)(.*?)\n(.*?)(Author)/$1$2$3$4/g;
but it does not seem to work. Is there a way to make it work without using a while() loop? Also, is there a graphical debugger for Perl's regular expressions?