<?xml version="1.0" encoding="windows-1252"?>
<node id="948419" title="Re: Perl Regex Repeating Patterns" created="2012-01-17 16:21:05" updated="2012-01-17 16:21:05">
<type id="11">
note</type>
<author id="5348">
Corion</author>
<data>
<field name="doctext">
&lt;p&gt;Having a quantifier after capturing parentheses is almost always an error.&lt;/p&gt;
&lt;p&gt;Maybe you want to directly populate your list?&lt;/p&gt;
&lt;c&gt;
my @matches = ($string =~ /([A-Z]{3})/g;
&lt;/c&gt;
&lt;p&gt;but that approach will not work if your input data contains non-alphabetical chars, like:&lt;/p&gt;
&lt;c&gt;
AAA..BBB
&lt;/c&gt;
&lt;p&gt;If you want a match to start at a specific position, see [doc://perlre] on &lt;c&gt;\G&lt;/c&gt;.&lt;/p&gt;
</field>
<field name="root_node">
948417</field>
<field name="parent_node">
948417</field>
</data>
</node>
