May 11, 2006, 7:09 AM
Post #1 of 3
Follow up to my earlier post Trying to match Crystal-Cont : ++++_+++ | 0.9000
As an addendum to my doubt posted earlier, (which I have provided below once again), I am initially checking whether the line begins with "//" as such lines are to be ignored.
I am doing that with ($_ !~m/\/\//) BEFORE calling the split on the line.
The delimiter between the field-name and the value is the ":"
Hence I am trying to do
my ($field, $value) = split($_, ":");
I want $field = Crystal-Cont and $value = '+++++_+++++ | 0.9000'.
However when I run my script it throws the following error
" Nested quantifiers in regex; marked by <-- HERE in m/ Cryst-Cont : ++ <-- HERE ++_+++++| 0.9000
/ at pdbfinder_xml.pl line 18 (#2)
(F) You can't quantify a quantifier without intervening parentheses. 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 "
Please advise me regarding the best way to eliminate this error.
Note that I cannot do a substitution or modify the $_ in any way.