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