<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Sure,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>perl -pe 's{</?br>}{}g'</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><A
href="mailto:brian@BigBlue:~$">brian@BigBlue:~$</A> echo "<br>Some
String</br>" | perl -pe 's{</?br>}{}g'<BR>Some String<BR><A
href="mailto:brian@BigBlue:~$">brian@BigBlue:~$</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>--Brian</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=mdarnell@servpac.com href="mailto:mdarnell@servpac.com">Matthew John
Darnell</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=luau@videl.ics.hawaii.edu
href="mailto:luau@videl.ics.hawaii.edu">luau@videl.ics.hawaii.edu</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, March 24, 2004 5:48
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [luau] Perl String
Question</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Aloha,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>If I have a string "<b>Yo ho ho and a
bottle of rum</b>" is there an elegant way to eliminate the '<b>'
& '</b>'?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>It would also need to return
nothing for the string "<b></b>"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I could hack something up, but I am thinking
it could be accomplished in one line of code. I am sure there is more
than one way to do it.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>As you probably guessed, I am parsing a web
page.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>-Matt</FONT></DIV></BLOCKQUOTE></BODY></HTML>