<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Pessoal..estou fazendo alguns testes:<br><br><br>my $string = "fora1 Begin dentro1 end Begin dentro2 end<br>Begin dentro3<br>end Begin dentro4 en<br>d fora2";<br><br>#while($s =~ m/\string?\n?(.*?)\s?(B\s?e\s?\s?g\s?i\s.*?\s?e\s?n\s?d\s?)\s?(.*?)/gis)<br><br>minha expressao pega tudo q esta dntro de Begin e End porem ele nao pega o fora2.. <br>isso pq nao achou o Begin e end.. mas como eu faria para recupera-lo?<br><br>Obrigada<br></div></div><br>


      <hr size=1>Abra sua conta no <a href="http://br.rd.yahoo.com/mail/taglines/mail/*http://br.mail.yahoo.com/">Yahoo! Mail</a>, o único sem limite de espaço para armazenamento! 
</body></html>