Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!rutgers!mcnc!uvaarpa!mmdf From: worley@compass.com (Dale Worley) Newsgroups: comp.lang.perl Subject: a regular expression question Message-ID: <1990May28.204006.13893@uvaarpa.Virginia.EDU> Date: 28 May 90 20:40:06 GMT Sender: mmdf@uvaarpa.Virginia.EDU (Uvaarpa Mail System) Reply-To: worley@compass.com Organization: The Internet Lines: 14 From: shani@TAURUS.BITNET Could anyone help? I want only "cp\s@\s" to match. Use "cp" =~ /cp\s.*@.*\s.*/ Otherwise, the *'s modify the \s's and @ that preceeds them. Dale Worley Compass, Inc. worley@compass.com -- Just say N O! 2