Ravi Malghan wrote:
I read up some docs on perlre. I know what .* does. But couldn't figure out what does .*? does.

That's also explained in "perldoc perlre". Look for "greedy" and "greediness" in the section "Quantifiers". (But it's unnecessary in this case IMO.)

Also in the variant you suggested what does [^)] inside the paranthesis do?

Character class that matches any character but a right parenthesis.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to