<!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> </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> </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>> 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>> O Antlr (<A
href="http://www.antlr.org">http://www.antlr.org</A>) tem uma
implementação bem simpática desse assunto e tem suporte para perl.</DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT>> <BR
class=khtml-block-placeholder></DIV>
<DIV>> Cumps,</DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT>> <BR
class=khtml-block-placeholder></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT>> <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>> Nélio Nunes</DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>
<DIV style="MARGIN: 0px">>> por exemplo:</DIV>
<DIV style="MARGIN: 0px">>> $texto = "O Jornal nº 121/2006 apresenta bla
bla bla bla bla, diferente da<SPAN
class=Apple-converted-space> </SPAN></DIV>
<DIV style="MARGIN: 0px">>> 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>>> <BR></DIV>
<DIV style="MARGIN: 0px">>> deve ficar:</DIV>
<DIV style="MARGIN: 0px">>> $texto = "O <a
href="leitura.pl?tipo=jornal&numero=121&ano=2006">Jornal nº<SPAN
class=Apple-converted-space> </SPAN></DIV>
<DIV style="MARGIN: 0px">>> 121/2006</a> apresenta bla bla bla bla
bla, diferente da <a<SPAN class=Apple-converted-space> </SPAN></DIV>
<DIV style="MARGIN: 0px">>>
href="leitura.pl?tipo=revista&numero=54&ano=2000">revista nº 54
de<SPAN class=Apple-converted-space> </SPAN></DIV>
<DIV style="MARGIN: 0px">>> maio/2000</a> que bla bla bla
bla".</DIV></DIV></SPAN></SPAN></SPAN></DIV></DIV></BLOCKQUOTE></BODY></HTML>