From owner-freebsd-questions@freebsd.org Thu Jul 4 04:37:34 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2B16615C2E2D for ; Thu, 4 Jul 2019 04:37:34 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 26F2780CA3 for ; Thu, 4 Jul 2019 04:37:32 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=Message-ID:Subject:To:From:Date:In-Reply-To; bh=1yQSXk9eJyyBSeK8jEvwWnoL/9qTHxZAflLZeesy08M=; b=Q3liCyAnb8JYwpNDhh1nLomtef 0O/4771XT45WCF+4nSddQH/icYn1voYYenwHKcbydkSUgW6/vEcFlDfswkrvBll0RdEP/w2uX1p7Q 0QxASfH5LzLwLSRgwKuoyhLS/Y8OpVvIxdD01XEQh0+/nN0G+225Lxeyu2X930VaWUxI=; Received: from vas by admin.sibptus.ru with local (Exim 4.92 (FreeBSD)) (envelope-from ) id 1hitUx-0004li-90 for freebsd-questions@freebsd.org; Thu, 04 Jul 2019 11:37:31 +0700 Date: Thu, 4 Jul 2019 11:37:31 +0700 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: a pcre question Message-ID: <20190704043731.GA18229@admin.sibptus.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AhhlLboLdkugWU4S" Content-Disposition: inline X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.12.0 (2019-05-25) Sender: Victor Sudakov X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jul 2019 04:37:34 -0000 --AhhlLboLdkugWU4S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Dear Colleagues, Sorry for a not directly FreeBSD-related question, but why can't I make pcretest from devel/pcre match a newline to the "." token? I expected that either the "m" or the "s" modifier should do the job, but alas! $ pcretest ~/tmp/koshka.txt PCRE version 8.43 2019-02-23 /koshka.*sobaka/s koshka1 No match koshka2 No match sobaka No match koshka No match koshka33 No match While the same regex /koshka.*sobaka/s yields a match on https://regex101.c= om/ --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --AhhlLboLdkugWU4S Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJdHYKLAAoJEA2k8lmbXsY0McMH/1RnhmpetjCMr2YGqSlWUyYt h1R1p2eElHUQ1ep9AF7vhzTll5CM2c7O2sgt40E7ffDBJewy//LYIPiAZuTScpYD oEhjC5z4rOfE7k84usxdQWXxcYm/rxKXs/Uzu1ljjL5/I1Xg24rQN5HMjR8h4aPZ T48dkk15ksrIC580x292ERZrpQGfFYc0z0fdegLkM25zvNUdymgACamutTV1sEfd rAzMZZk7qG2Xp7H3ci2vDSqPOnl8K8WES4HfvAknnU0ASHkGCsYworTsIXiRcvCb 9LbzLBOCUtTepNf9W1P3kinhjP82qxHEcj2j7L3LT23zanCNVEyIWhDQxEOyE7g= =cNr1 -----END PGP SIGNATURE----- --AhhlLboLdkugWU4S--