perlquestion
c
My regex is as follows:<p>
<code>
/C(?:800)|(?:(?:35|29)(?:(?:50)|(?:00XL)))/
</code><p>
Concerning this snippet of code, I have two questions...<p>
1. Is this using too many paren statements, or is this just per coder's discretion?<p>
2. This regex matches on 'C3550XL' and I'm not sure why. I would expect C3500XL or C3550, but not this problematic mix of the two. My thought is that the statement:<p>
<code>
(?:(?:50)|(?:00XL))
</code><p>
seperates the 50 and the XL portion ensuring a match only on strings with XL that are directly preceeded by two zeros.<p>
Thanks in advance for you guidance.<p>
-[c]