Jan Eden wrote:
Hi,

Hello,

sorry! Overlooked the g switch, so the first parentheses captures
either nothing or the initial \\begin{letter}.

Correct. Another way to write it (so you only have one alternation) would be:

/ (?: \\begin{letter}{ | \\+\s* ) ( [^\\}]+ ) /xg


I got it now.

Thanks again,

You're welcome. :-)


John -- use Perl; program fulfillment

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to