<!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.6000.16481" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY 
style="WORD-WRAP: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space" 
bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Não... acredito que com regex eu consiga sim 
identificar os padrões. Pode ficar um pouco mais extensa a expressão regular, 
mas é tranquilo.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>O meu maior problema é tirar esses dados do $texto 
e colocar todos os links no lugar certo.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>[]s,</FONT></DIV>
<DIV><FONT face=Arial size=2>Fernando</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV>&gt; Pelo que vejo do teu problema, eu aconselhava-te a resolver o teu 
  problema utilizando gramáticas. A utlização de regexs só vai trazer dores de 
  cabeça.</DIV>
  <DIV>&gt; O Antlr (<A 
  href="http://www.antlr.org">http://www.antlr.org</A>)&nbsp;tem uma 
  implementação bem simpática&nbsp; desse assunto e tem suporte para perl.</DIV>
  <DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT>&gt; <BR 
  class=khtml-block-placeholder></DIV>
  <DIV>&gt; Cumps,</DIV>
  <DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT>&gt; <BR 
  class=khtml-block-placeholder></DIV>
  <DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT>&gt; <BR>
  <DIV><SPAN class=Apple-style-span 
  style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; -khtml-text-decorations-in-effect: none; -apple-text-size-adjust: auto; orphans: 2; widows: 2"><SPAN 
  class=Apple-style-span 
  style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; -khtml-text-decorations-in-effect: none; -apple-text-size-adjust: auto; orphans: 2; widows: 2"><SPAN 
  class=Apple-style-span 
  style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; -khtml-text-decorations-in-effect: none; -apple-text-size-adjust: auto; orphans: 2; widows: 2">
  <DIV>&gt; Nélio Nunes</DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV>
  <DIV style="MARGIN: 0px">&gt;&gt; por exemplo:</DIV>
  <DIV style="MARGIN: 0px">&gt;&gt; $texto = "O Jornal nº 121/2006 apresenta bla 
  bla bla bla bla, diferente da<SPAN 
  class=Apple-converted-space>&nbsp;</SPAN></DIV>
  <DIV style="MARGIN: 0px">&gt;&gt; revista nº 54 de maio/2000 que bla bla bla 
  bla".</DIV>
  <DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><FONT face=Arial 
  size=2></FONT>&gt;&gt; <BR></DIV>
  <DIV style="MARGIN: 0px">&gt;&gt; deve ficar:</DIV>
  <DIV style="MARGIN: 0px">&gt;&gt; $texto = "O &lt;a 
  href="leitura.pl?tipo=jornal&amp;numero=121&amp;ano=2006"&gt;Jornal nº<SPAN 
  class=Apple-converted-space>&nbsp;</SPAN></DIV>
  <DIV style="MARGIN: 0px">&gt;&gt; 121/2006&lt;/a&gt; apresenta bla bla bla bla 
  bla, diferente da &lt;a<SPAN class=Apple-converted-space>&nbsp;</SPAN></DIV>
  <DIV style="MARGIN: 0px">&gt;&gt; 
  href="leitura.pl?tipo=revista&amp;numero=54&amp;ano=2000"&gt;revista nº 54 
  de<SPAN class=Apple-converted-space>&nbsp;</SPAN></DIV>
  <DIV style="MARGIN: 0px">&gt;&gt; maio/2000&lt;/a&gt; que bla bla bla 
  bla".</DIV></DIV></SPAN></SPAN></SPAN></DIV></DIV></BLOCKQUOTE></BODY></HTML>