Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105803 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 94419 invoked from network); 30 May 2019 14:10:30 -0000 Received: from unknown (HELO mail-lf1-f44.google.com) (209.85.167.44) by pb1.pair.com with SMTP; 30 May 2019 14:10:30 -0000 Received: by mail-lf1-f44.google.com with SMTP id b11so4719484lfa.5 for ; Thu, 30 May 2019 04:20:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=devilix.net; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=YXee+qDhs9rUqYdUnCylBG0Z71fjdZlT544OzCH5E2g=; b=vcT5DfCNJtJW857ixlZuHHZgTLotUABxfh6WM87p8At739st7s93vZ1NnhxFpN/w+l a0GrcJKVq7algMezOVkgAWcc+FSzvLac3gWtxF3oJ93btF2OKu46S4gNE4SqZJG8yuEJ II94pZynr4K2w+xRGEuTinQtCE43CnFPiJAz4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=YXee+qDhs9rUqYdUnCylBG0Z71fjdZlT544OzCH5E2g=; b=TA1q2NJ6WmWTPwm5a6fUPeoGXmBM2DSWtf3ZFPTcVWZrQS//lWVC00bmWPyxDwt3qd /1FhUMxYcebhQnH7P3eiQWlV2zzgrYZwgX3g0PvTiS0WPxpK4GhZPe+tF8JqFzfC40GR Fq5+s8RYSgNwOml5rKyC/Q1zuGeeFaemaIdd278dAoTyFUlCW61sdgWlNAafXnGJWXxb zYhalZF06q60fiRmDWvtlqIJSurZmgwJMUwwymPBDMWoOuOGMl2XTsHBousQ50fOfLwR TjJSXoG5FAf0T/N3qmoPG0/i4Gp8lrhoQRvglbA/KslV58+V93C0HPhOwsfgMxbqgSTf jR8Q== X-Gm-Message-State: APjAAAU1thJ2RpcYITXBeBgSNFtHisuE8IrbKFOr+fihjH/YZ5a77LQP 8glvgkgePm+nN4xq0Oz0etl8wy4o+pN/zG8XUwR+4Dd5 X-Google-Smtp-Source: APXvYqy5w4mNjYt+GsJ1CP4lt0Gm2v0ue19EcPTa4J1MsZNWenrmgVm4d+QXidzTFzXnwyeib6hABT9YP96RVzPIwmY= X-Received: by 2002:ac2:548a:: with SMTP id t10mr1772963lfk.84.1559215207747; Thu, 30 May 2019 04:20:07 -0700 (PDT) MIME-Version: 1.0 References: <20190530101141.GN16895@phcomp.co.uk> In-Reply-To: <20190530101141.GN16895@phcomp.co.uk> Date: Thu, 30 May 2019 14:19:56 +0300 Message-ID: To: PHP Internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Error in PHP documentation From: narf@devilix.net (Andrey Andreev) Hi, On Thu, May 30, 2019 at 1:11 PM Alain D D Williams wrote: > > I have noticed an error, please can someone with update rights fix it. > > https://www.php.net/manual/en/regexp.reference.character-classes.php > > 7th paragraph contains: > > However, if the "]" is escaped with a backslash it is interpreted as the end of > range, so [W-\]46] is interpreted as a single class containing a range followed > by two separate characters. > > The word NOT is missing, it should read: > > However, if the "]" is escaped with a backslash it is NOT interpreted as the end of > range, so [W-\]46] is interpreted as a single class containing a range followed > by two separate characters. > No, there's no error and nothing missing. You're misinterpreting what it says. "Range" means the "W-\]" part. As in a range of characters between W and ]. Cheers, Andrey.