Dear list,
Thanks very much to all who answered this query; it seems obvious when
one knows the answer, but I was fixated on the stop, and not the dash.
John
On 27/10/2022 19:06, Philip Hands wrote:
John Levin via GLLUG <[email protected]> writes:
...
Is there something about the order of characters in regex square
brackets? Does the stop have a special meaning when given first?
The place to find the answer is in the regex(7) manpage:
https://manpages.debian.org/testing/manpages/regex.7.en.html
in which you'll find this sentence regarding bracket expressions:
To include a literal '-', make it the first or last character,
or the second endpoint of a range.
(there's also more there about how to start a range with a `-`)
Cheers, Phil.
--
GLLUG mailing list
[email protected]
https://mailman.lug.org.uk/mailman/listinfo/gllug