<div dir="ltr">o gnu sed sim:<br><br> s/regexp/replacement/<br> Attempt to match regexp against the pattern space. If success‐<br> ful, replace that portion matched with replacement. The<br>
replacement may contain the special character & to refer to that<br> portion of the pattern space which matched, and the special<br> escapes \1 through \9 to refer to the corresponding matching<br>
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"><<a href="mailto:caio.ariede@gmail.com">caio.ariede@gmail.com</a>></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>
"Though we live in trying times, we're the ones who have to try"<br>
</div>