X-Received: by 10.224.176.196 with SMTP id bf4mr135304qab.4.1360202636920; Wed, 06 Feb 2013 18:03:56 -0800 (PST) X-Received: by 10.49.62.2 with SMTP id u2mr2675374qer.38.1360202636644; Wed, 06 Feb 2013 18:03:56 -0800 (PST) Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder2.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!p13no504254qai.0!news-out.google.com!k2ni8440qap.0!nntp.google.com!p13no16814463qai.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.java.programmer Date: Wed, 6 Feb 2013 18:03:56 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=69.28.149.29; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T NNTP-Posting-Host: 69.28.149.29 References: <42t5h8d8ta5iq9nkfded0pvfl104cqhc77@4ax.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <97897683-a69c-430a-a3de-90f2faeed82f@googlegroups.com> Subject: Re: regex reserved chars From: Lew Injection-Date: Thu, 07 Feb 2013 02:03:56 +0000 Content-Type: text/plain; charset=ISO-8859-1 Lines: 23 Xref: csiph.com comp.lang.java.programmer:22185 markspace wrote: > Roedy Green wrote: >> I have always treated $ ( ) * + -. ? [ \ ] ^ { | } >> as reserved regex chars. >> I can't find any docs that say the list is different inside[ ]. >> is it? > > > > "Note that a different set of metacharacters are in effect inside a > character class than outside a character class. For instance, the > regular expression . loses its special meaning inside a character class, > while the expression - becomes a range forming metacharacter. " > > Learn to STFW. > > I really hate to use language like that, but Jesus Roedy are you kidding me? http://lmgtfy.com/?q=Regular+expression+metacharacters+character+class HTH -- Lew