Problems? Is your data what you think it is? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
My regex is as follows:
Concerning this snippet of code, I have two questions... 1. Is this using too many paren statements, or is this just per coder's discretion? 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:
seperates the 50 and the XL portion ensuring a match only on strings with XL that are directly preceeded by two zeros. Thanks in advance for you guidance. -c In reply to A question of 'or' in a Regex by c
|
|