Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: markspace Newsgroups: comp.lang.java.programmer Subject: Re: regex reserved chars Date: Mon, 11 Feb 2013 07:16:03 -0800 Organization: A noiseless patient Spider Lines: 13 Message-ID: References: <42t5h8d8ta5iq9nkfded0pvfl104cqhc77@4ax.com> <511300de$0$295$14726298@news.sunsite.dk> <5115a135$0$288$14726298@news.sunsite.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 11 Feb 2013 15:15:25 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="fba3415ba68d85d643935af2f52f0b4b"; logging-data="17140"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19rkAi441hHeI96WrvdJ7SGfxFxypPzmNY=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 In-Reply-To: Cancel-Lock: sha1:pZig8OAg78YvohLO8srt5HwWKjo= Xref: csiph.com comp.lang.java.programmer:22273 On 2/11/2013 1:25 AM, Nigel Wade wrote: > Er, not quite. There's also '^' which, as the first character only, > negates the match. Did you read the next paragraph where I mention this? I wrote: > (It appears to me that > ^ actually makes a separate token with [, [^, which is different from > the non-negated character class. That's why you can use ^ anywhere > within the character class except the first position.)