Skip to main content
3 of 4
added 2 characters in body; edited tags; edited title
user avatar
user avatar

How to specify regex quantifiers with mawk?

I'm familiar with the concept of specified bounded regex quantifiers as follows:

Quantifier  Legend               Example    Sample Match

{3}         Exactly three times  \D{3}      ABC
{2,4}       Two to four times    \d{2,4}    156
{3,}        Three or more times  \w{3,}     regex_tutorialer

However, I've not been able to find anything like the above for mawk in the man pages nor online.

Does the mawk command have this functionality, or is there a different way of accomplishing the same effect?

I am using version mawk 1.3.3

user332459