<!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.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=603121018-25032004>It 
looks like you already have your answer but since my friend replied I figured I 
would forward it on.  -Cody</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=603121018-25032004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>-----Original 
Message-----</FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff>From: Paul</FONT> 
</FONT></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>$string =~ 
s\(<b>|</b>)\\;</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>FYI -</FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff>Normally those 
backslashes would be forward slashes, but since his</FONT> </FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff>search string contains 
forward slashes, you can use another symbol to</FONT> </FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff>keep perl from getting 
confused. For instance, I could have wrote</FONT> </FONT></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2>s*(<b>|</b>)** instead 
and it would have meant the same thing.</FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Matthew John Darnell 
  [mailto:mdarnell@servpac.com]<BR><B>Sent:</B> Wednesday, March 24, 2004 5:48 
  PM<BR><B>To:</B> luau@videl.ics.hawaii.edu<BR><B>Subject:</B> [luau] Perl 
  String Question<BR><BR></FONT></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>