<!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.16544" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN 
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'MS Mincho'; mso-ansi-language: PT-BR; mso-fareast-language: PT-BR; mso-bidi-language: AR-SA"><FONT 
face="Trebuchet MS" size=2>Já havia tentado isso amigo,</FONT></SPAN></DIV>
<DIV><SPAN 
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'MS Mincho'; mso-ansi-language: PT-BR; mso-fareast-language: PT-BR; mso-bidi-language: AR-SA"><FONT 
face="Trebuchet MS" size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN 
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'MS Mincho'; mso-ansi-language: PT-BR; mso-fareast-language: PT-BR; mso-bidi-language: AR-SA"><FONT 
face="Trebuchet MS" size=2>O problema é que a extensão não é txt, é 
doc!</FONT></SPAN></DIV>
<DIV><SPAN 
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'MS Mincho'; mso-ansi-language: PT-BR; mso-fareast-language: PT-BR; mso-bidi-language: AR-SA"><FONT 
face="Trebuchet MS" size=2>Ao realizar esse procedimento: <FONT 
face="Times New Roman" size=3>perl -i.bak -pe 
's#&lt;sup&gt;&lt;u&gt;o&lt;/u&gt;&lt;/sup&gt;#°#g' 
arquivo.doc</FONT></FONT></SPAN></DIV>
<DIV><SPAN 
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'MS Mincho'; mso-ansi-language: PT-BR; mso-fareast-language: PT-BR; mso-bidi-language: AR-SA"></SPAN>&nbsp;</DIV>
<DIV><SPAN 
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'MS Mincho'; mso-ansi-language: PT-BR; mso-fareast-language: PT-BR; mso-bidi-language: AR-SA"><FONT 
face="Trebuchet MS" size=2>o arquivo perde o texto e fica somente 
isto:</FONT></SPAN></DIV>
<DIV><SPAN 
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'MS Mincho'; mso-ansi-language: PT-BR; mso-fareast-language: PT-BR; mso-bidi-language: AR-SA">ÐÏࡱ</SPAN></DIV>
<DIV><SPAN 
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'MS Mincho'; mso-ansi-language: PT-BR; mso-fareast-language: PT-BR; mso-bidi-language: AR-SA"></SPAN>&nbsp;</DIV>
<DIV><SPAN 
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'MS Mincho'; mso-ansi-language: PT-BR; mso-fareast-language: PT-BR; mso-bidi-language: AR-SA"><FONT 
face="Trebuchet MS" size=2>Pessoal, há alguma forma de realizar expressões 
regulares dentro de arquivos do word (*.doc) ?????</FONT></SPAN></DIV>
<DIV><SPAN 
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'MS Mincho'; mso-ansi-language: PT-BR; mso-fareast-language: PT-BR; mso-bidi-language: AR-SA"><FONT 
face="Trebuchet MS" size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN 
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'MS Mincho'; mso-ansi-language: PT-BR; mso-fareast-language: PT-BR; mso-bidi-language: AR-SA"><FONT 
face="Trebuchet MS" size=2>Valeu a atenção,</FONT></SPAN></DIV>
<DIV><SPAN 
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'MS Mincho'; mso-ansi-language: PT-BR; mso-fareast-language: PT-BR; mso-bidi-language: AR-SA"><FONT 
face="Trebuchet MS" size=2>Fernando</FONT></SPAN></DIV>
<BLOCKQUOTE 
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=fernandocorrea@gmail.com 
  href="mailto:fernandocorrea@gmail.com">Fernando Oliveira</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=cascavel-pm@pm.org 
  href="mailto:cascavel-pm@pm.org">Cascavel Perl Mongers</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, December 05, 2007 2:43 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Cascavel-pm] [OT] Gambiarra 
  do Word</DIV>
  <DIV><BR></DIV>Substituir automaticamente 
  "&lt;sup&gt;&lt;u&gt;o&lt;/u&gt;&lt;/sup&gt;" por 
  "º"???<BR>&lt;code&gt;<BR>perl -i -pe 
  's#&lt;sup&gt;&lt;u&gt;o&lt;/u&gt;&lt;/sup&gt;#°#g' 
  arquivo<BR>&lt;/code&gt;<BR><BR>
  <DIV><SPAN class=gmail_quote>Em 05/12/07, <B class=gmail_sendername><A 
  href="mailto:fernandolouis@terra.com.br">fernandolouis@terra.com.br</A></B> 
  &lt;<A href="mailto:fernandolouis@terra.com.br ">fernandolouis@terra.com.br 
  </A>&gt; escreveu:</SPAN>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Amigos,<BR>Sabiam 
    que os documentos do word, não passam de documentos xhtml? <BR>o cabeçalho 
    do código-fonte é:<BR><BR>&lt;html 
    xmlns:v="urn:schemas-microsoft-com:vml"<BR>xmlns:o="urn:schemas-microsoft-com:office:office"<BR>xmlns:w="urn:schemas-microsoft-com:office:word" 
    <BR>xmlns="<A 
    href="http://www.w3.org/TR/REC-html40">http://www.w3.org/TR/REC-html40</A>"&gt;<BR><BR>Muitos 
    textos do word, ao invés de "nº", aparecem "no",<BR>só que não percebe-se 
    isso pq o Word usa no "o": &lt;sup&gt;&lt;u&gt;o&lt;/u&gt;&lt;sup&gt; 
    <BR><BR>Alguém sabe como substituir 
    automaticamente:<BR>"&lt;sup&gt;&lt;u&gt;o&lt;/u&gt;&lt;/sup&gt;" por 
    "º"<BR><BR>Tenho centenas de arquivos para fazer essa substituição.<BR>E 
    desejo fazer isso em todos simultaneamente. <BR><BR>É que quando copio um 
    texto do word pro bloco de notas,<BR>tudo fica errado, por exemplo:<BR><BR>O 
    texto fica assim:<BR>"A casa no 5, lote no 23 está sob processo no 
    1.222".<BR><BR>e deveria colar assim: <BR>"A casa nº 5, lote nº 23 está sob 
    processo nº 
    1.222".<BR><BR>[]s,<BR>Fernando<BR><BR>_______________________________________________<BR>Cascavel-pm 
    mailing list<BR><A href="mailto:Cascavel-pm@pm.org">Cascavel-pm@pm.org 
    </A><BR><A 
    href="http://mail.pm.org/mailman/listinfo/cascavel-pm">http://mail.pm.org/mailman/listinfo/cascavel-pm</A><BR></BLOCKQUOTE></DIV><BR><BR 
  clear=all><BR>-- <BR>[]'s Fernando 
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Cascavel-pm mailing 
  list<BR>Cascavel-pm@pm.org<BR>http://mail.pm.org/mailman/listinfo/cascavel-pm</BLOCKQUOTE></BODY></HTML>