Doc: work a little harder on the initial examples for regex matching.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 1 Feb 2021 21:38:52 +0000 (16:38 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 1 Feb 2021 21:38:52 +0000 (16:38 -0500)
commit9522085ac917af66dba29939af328ae67300f10a
tree3fd7ae2655ab9ccf0fa85a161d4c27b3a86a1fe9
parentf003a7522bfa11177dc52c65eb97273a1057dfba
Doc: work a little harder on the initial examples for regex matching.

Writing unnecessary '.*' at start and end of a POSIX regex doesn't
do much except confuse the reader about whether that might be
necessary after all.  Make the examples in table 9.16 a tad more
realistic, and try to turn the next group of examples into something
self-contained.

Per gripe from rmzgrimes.  Back-patch to v13 because it's easy.

Discussion: https://postgr.es/m/161215841824.14653.8969016349304314299@wrigleys.postgresql.org
doc/src/sgml/func.sgml