home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / perl / 5689 < prev    next >
Encoding:
Text File  |  1992-09-02  |  785 b   |  23 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!gatech!concert!fletcher!mcmahan
  3. From: mcmahan@cs.unca.edu (Scott McMahan -- Genesis mailing list owner)
  4. Subject: Punctuation in Regex, or Wouldn't a \p be nice?
  5. Message-ID: <1992Sep2.232753.3020@cs.unca.edu>
  6. Organization: University of North Carolina at Asheville
  7. X-Newsreader: Tin 1.1 PL5
  8. Date: Wed, 2 Sep 1992 23:27:53 GMT
  9. Lines: 12
  10.  
  11. A really nice thing for perl to do would be to provide \p as a
  12. regular expression like \s that would match one punctuation
  13. character. (!@#$%^&*()_-+=~`}]{[|\"':;?/>.<, :^))
  14.  
  15. Since most of these are also regular expression characters, it
  16. would eliminate a lot of \-ing.
  17.  
  18. Is there an easy way to put a lot of punctuation in a regex
  19. without tons of quoting?  (q and qq don't look like they'd work)
  20.  
  21. Scott
  22.  
  23.