[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why () is required to enclose § when ? is used?
From: |
Peng Yu |
Subject: |
Re: Why () is required to enclose § when ? is used? |
Date: |
Fri, 6 Jan 2023 08:28:39 -0600 |
Oops. Please ignore this post. I made a mistake.
On 1/6/23, Peng Yu <pengyu.ut@gmail.com> wrote:
> I have to enclose § with () when I use ?. Why is it so? Is it a bug? I
> thought () is not required when ? is used with a single character?
>
> $ awk -e '{ match($1, /§§?/, a); print a[1] }' <<< '§§a'
>
> $ awk -e '{ match($1, /§(§)?/, a); print a[1] }' <<< '§§a'
> §
>
> --
> Regards,
> Peng
>
--
Regards,
Peng