banduwgs has asked for the wisdom of the Perl Monks concerning the following question:
When I passed $match_string = "Are you a Perfect Sinhalese????" it gives following error:$match_count += 1 if ($subject =~ /^[RE:\s*|FW:\s*]*$match_string\i*$/ +);
Code at line 496 is given above. But it works fine with $match_string = "Are you a Perfect Sinhalese". What's the problem here? And how I can avoid it?Nested quantifiers in regex; marked by <-- HERE in m/^[RE:\s*|FW:\s*]* +Are you a Perfect Sinhalese??? <-- HERE ?\s*$/ at C:/Perl/lib/LTG/DocBuddy/Relation.pm line 496.
update (broquaint): s{<(/)?pre>}(<${1}code>)g
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Error! Nested quantifiers in regex
by Abigail-II (Bishop) on Sep 16, 2003 at 09:06 UTC | |
by banduwgs (Beadle) on Sep 16, 2003 at 09:16 UTC | |
|
Re: Error! Nested quantifiers in regex
by leriksen (Curate) on Sep 16, 2003 at 09:12 UTC |