Dear All,
I am doing capitalization of the titles. In that the text within <u></u> tag should be as input. means my conversion program should not touch this text.
What I have used is, I have removed this part from the text in the beginning and in the last once again I put the text back. This working fine if I have only one case in the line. If I have multiple cases this logic is not working.
my code is:
if($line=~m!<u>(.+)</u>!i) { $un=$1; } $line=~s!<u>(.+)</u>!<u></u>!ig;
code for conversion ....
$line=~s!<u></u>!$un!ig;
the above code is working if the input is like this. "A Practical Guide to <u>CD-Rom</u>"
the output "A Practical Guide to CD-Rom"
I have tried with non-greedy by putting the question mark after + but the DVD is also getting replaced with CD-Rom.
the above code is not working if the input is like this. "A Practical Guide to <u>CD-Rom</u> and <u>DVD</u>"
the output "A Practical Guide to CD-Rom and CD-Rom"
Please help to solve this problem.
Regards, Ganesh
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>