[GLLUG] Grep question
John Edwards
john at cornerstonelinux.co.uk
Thu Oct 27 14:31:18 UTC 2022
On Thu, Oct 27, 2022 at 03:24:10PM +0100, Henrik Morsing via GLLUG wrote:
> On Thu, Oct 27, 2022 at 03:02:28PM +0100, John Levin via GLLUG wrote:
<snip>
>> Is there something about the order of characters in regex square
>> brackets? Does the stop have a special meaning when given first?
>
> I think . means any character, does it help to escape it? (\.)
<snip>
Also the hyphen character - between two other characters means a
range. For example [0-9] means any characters between 0 and 9.
See: https://en.wikipedia.org/wiki/Regular_expression#Patterns
--
#---------------------------------------------------------#
| John Edwards Email: john at cornerstonelinux.co.uk |
#---------------------------------------------------------#
More information about the GLLUG
mailing list