Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!ames!haven!decuac!e2big.mko.dec.com!bacchus.pa.dec.com!decwrl!sdd.hp.com!usc!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.lang.perl Subject: Re: ' in character class Message-ID: <9115@jpl-devvax.JPL.NASA.GOV> Date: 11 Aug 90 18:12:05 GMT References: <1990Aug11.001936.16075@comm.wang.com> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 13 In article <1990Aug11.001936.16075@comm.wang.com> lws@comm.wang.com (Lyle Seaman) writes: : Isn't there some way to get a ' into a character class? : I want to to do something like: : /[\w\.\-\']+/ ie, match a string of alphanumerics, periods, hyphens and : apostrophes. : : But PERL always complains. If somebody could explain what that : sequence above really means, and/or how I can what I want, I'd : be most grateful. The problem isn't \' but \-. This is fixed in patchlevel 27. Larry