Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Jul 2019 11:37:31 +0700
From:      Victor Sudakov <vas@mpeks.tomsk.su>
To:        freebsd-questions@freebsd.org
Subject:   a pcre question
Message-ID:  <20190704043731.GA18229@admin.sibptus.ru>

next in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190704043731.GA18229>