in reply to removing <br> from my output

while (<OUTFILE>) { s/<br>//gi; print FINAL if /(line1)/; print FINAL if /(line2)/; print FINAL if /(line3)/;
my input file reads:
This is line1<br> This is line2<br> This is line3<BR>
results in:
$ cat final.txt This is line1 This is line2 This is line3

Replies are listed 'Best First'.
Re^2: removing <br> from my output
by Anonymous Monk on May 19, 2009 at 18:42 UTC
    Yes it worked.Thank you so much!

    I have 2 more questions:

    1. here is how my outfile.html looks
    line1=10 line3=20 line3=30 line4=Mon May 18 02:28:58 EDT 2009 line5=60
    and here is how my code looks for extracting lines like line1=10,line2=20
    print FINAL if /(line1=\d+)/; print FINAL if /(line2=\d+)/;

    but as my outfile.html has also some thing like below :

    line4=Mon May 18 02:28:58 EDT 2009
    how can I extract this line?

    2.my final output has few lines repeating since my outfile.html has lines repeating.how can I make it extract these lines only once?