home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!uwm.edu!ogicse!news.u.washington.edu!news
- From: absinthe@viva.chem.washington.edu (Daniel Faken)
- Newsgroups: comp.lang.perl
- Subject: Matching sequences NOT containing certain subsequences
- Message-ID: <1992Dec19.123317.10830@u.washington.edu>
- Date: 19 Dec 92 12:33:17 GMT
- Article-I.D.: u.1992Dec19.123317.10830
- Sender: news@u.washington.edu (USENET News System)
- Reply-To: absinthe@u.washington.edu
- Organization: University of Washington
- Lines: 12
-
- I want to match the outermost parentheses in things like
- (foo) and (foo\)), but not (foo()).
- I tried something like
- /([^\\]\)){0}/
- but got the message:
- Can't do {0} at OC line xx. [perl 4.0.1.7/33]
-
- How is this sort of thing normally done (within one match)?
- thanks,
- --
- Daniel Faken | Name a poison,
- absinthe@u.washington.edu | pick your flavour.
-