[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Why () is required to enclose § when ? is used?
From: |
Peng Yu |
Subject: |
Why () is required to enclose § when ? is used? |
Date: |
Fri, 6 Jan 2023 08:27:46 -0600 |
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
- Why () is required to enclose § when ? is used?,
Peng Yu <=