Do i have to post my perl script in here for you guys to help me? The script has 906 lines :)No, you should not post 906 lines of code. You should get into the habit of isolating your problem to as few lines as possible. In this case, a single line can reproduce the problem.
jwkrahn has pointed out your problem, but you can sometimes get more help using diagnostics:
use diagnostics; m/^de.e++issues@dell.com$/; __END__ Nested quantifiers in regex; marked by <-- HERE in m/^de.e++ <-- HERE issues.com$/ at C:\Perl\toolic\foo.pl line 2 (#3) (F) You can't quantify a quantifier without intervening parenthese +s. So things like ** or +* or ?* are illegal. The <-- HERE shows in the +regular expression about where the problem was discovered. Note that the minimal matching quantifiers, *?, +?, and ?? appear to be nested quantifiers, but aren't. See perlre.
In reply to Re: What does it mean Nested quantifiers in regex
by toolic
in thread What does it mean Nested quantifiers in regex
by anakin30
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |