<div dir="ltr">o gnu sed sim:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; s/regexp/replacement/<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Attempt&nbsp; to match regexp against the pattern space.&nbsp; If success‐<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ful,&nbsp; replace&nbsp; that&nbsp; portion&nbsp; matched&nbsp; with&nbsp; replacement.&nbsp;&nbsp;&nbsp; The<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; replacement may contain the special character &amp; to refer to that<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; portion of the pattern space&nbsp; which&nbsp; matched,&nbsp; and&nbsp; the&nbsp; special<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; escapes&nbsp; \1&nbsp; through&nbsp; \9&nbsp; to refer to the corresponding matching<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sub-expressions in the regexp.<br><br>as usual, RTFM<br><br><br><br><div class="gmail_quote">On Mon, Aug 18, 2008 at 5:20 PM, caio ariede <span dir="ltr">&lt;<a href="mailto:caio.ariede@gmail.com">caio.ariede@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">Alguém pode me informar se o SED suporta subpatterns? Algo do tipo:<br><br>([0-9]+):(?1)<br>
<br>Eu sei que essa lista não é sobre isso, mas já procurei em todo lugar e não achei sobre isso no SED.<br><br>Se alguém puder ajudar, valeu. ;)<br clear="all">
<br>-- <br>Caio Ariede<br><a href="http://caioariede.com/" target="_blank">http://caioariede.com/</a><br>
</div>
<br>_______________________________________________<br>
SaoPaulo-pm mailing list<br>
<a href="mailto:SaoPaulo-pm@pm.org">SaoPaulo-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/saopaulo-pm" target="_blank">http://mail.pm.org/mailman/listinfo/saopaulo-pm</a><br></blockquote></div><br><br clear="all"><br>-- <br>Alexei Znamensky [russoz_gmail_com] [<a href="http://russoz.wordpress.com">russoz.wordpress.com</a>] [<a href="http://www.flickr.com/photos/alexeiz">www.flickr.com/photos/alexeiz</a>]<br>
&quot;Though we live in trying times, we&#39;re the ones who have to try&quot;<br>
</div>