Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104817 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 89232 invoked from network); 20 Mar 2019 12:40:19 -0000 Received: from unknown (HELO mail-it1-f169.google.com) (209.85.166.169) by pb1.pair.com with SMTP; 20 Mar 2019 12:40:19 -0000 Received: by mail-it1-f169.google.com with SMTP id g17so30476800ita.2 for ; Wed, 20 Mar 2019 02:32:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=r25SLt/hceSPCjL9WGN9gJFpE5bQKxxCovarZ3Yyedc=; b=WibqsAecGWumVIe7fg828ZiCWudbiLtr3vCeIHIkUwNzYw+F/gPBxU02t0USAwJnGK 5TTjKjV7stZR4eE1iad30kmSw/7wErLLwM+BdTTqiei9f2ZAAYCvP+nQZ8UMf0fCsEZx 1VqpisBLDInzVSNBC2DHyqsE/gEAFEWCNFs13/oEsMuUal0fQ1xm7L/oDypIocbG5l74 DwDa3FKxWRcKNWh7XCPNopWmpWS/IITepVZ8qoS599es0CR8QZ4yFsJwnuEHDPzfmjKl m8GIfLGOPgqydYvT8ASQfZlTiHaNZoekAEMM1zGAyZf+fXwtF2JvrMlaGDFi5oO7pv52 5g7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=r25SLt/hceSPCjL9WGN9gJFpE5bQKxxCovarZ3Yyedc=; b=HJDpT2qGpNXS2Pe1n99xk80I/u0X98wIKsvEw7R3iv4hUr42wvP7urN8DrSuX/CUNP JDdJicchEEfTazwSZHq54Z59iERPlwQBC2HBcMDXZXiBULR76DxavsdHm4YYIHb3sY07 +ThxsyBuMdC5+pxmKlH2C20uKqQdw5pE0Hnd9KhuHENcU7bZa3eVVPn7Y9yOe5UXVdI1 EbxzgOlQZc14YhhS7JXPqeaepNUWj9EklSi7ctvuws+24LwsXfjVZzusrUh0MFGcQmH7 Yu9Udetss3sDY7c+eziqLF9K4WH+sPrqZunKaUSJQVrTn/k0un9yJGY2RzSr6RJB/AHx aa0Q== X-Gm-Message-State: APjAAAUM2egId1rMub6tHhTpulNheBctC5iDpaBoaIfm7UEIX3ZKUqA0 ui82fbdscI4b1dTJnigj2H8+A888BRqCOTJr/I8iKy7zB6o= X-Google-Smtp-Source: APXvYqy7I0Xume2jYf2H7AZD+edGw6mBQPk9Zyj7T7TOOBj7yFC56leuktN3VtDlFt84vEQNLKwTeNMONEx9cL956KU= X-Received: by 2002:a02:9109:: with SMTP id a9mr4183639jag.36.1553074330049; Wed, 20 Mar 2019 02:32:10 -0700 (PDT) MIME-Version: 1.0 Date: Wed, 20 Mar 2019 10:31:53 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="000000000000c0a1f40584834b75" Subject: PCRE partial matching From: nikita.ppv@gmail.com (Nikita Popov) --000000000000c0a1f40584834b75 Content-Type: text/plain; charset="UTF-8" Hi internals, PCRE has some very nice partial matching functionality described at https://www.pcre.org/current/doc/html/pcre2partial.html. This is useful for streaming processing, as it allows you to distinguish between "there's definitely no match here" and "this could match starting from position N, but we need more data to find out". Here is a PR to expose this functionality from PHP: https://github.com/php/php-src/pull/3969 The PR has a basic description of the API. What do you think? Nikita --000000000000c0a1f40584834b75--