This sounds like a homework project. We don't generally do people's homework for them. If I'm wrong, I apologize. Maybe you can tell us what you've tried so far. Have you read through 'perldoc perlre'?
I would recommend the module YAPE::Regex::Explain if you want some help figuring out what your regular expressions are really doing. -----Original Message----- From: Mandar Rahurkar [mailto:[EMAIL PROTECTED] Sent: Saturday, June 19, 2004 5:48 PM Cc: [EMAIL PROTECTED] Subject: Regexp Hi All, what wud be the regexp for : 1. substituting last s of every word e.g., forests become forest, goats becomes goat 2. removing all one and two lettered words e.g., a,an -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>