xref: /illumos-gate/usr/src/test/util-tests/tests/awk/examples/awk/t.re1a (revision 689b9301078f0c35c7f198fcee8032a0d30eff3a)
1BEGIN { r1 = "[a-cg-j1-3]"
2	r2 = "[^aeiou]"
3}
4
5$0 ~ r1	{ print $0 " matches /[a-cg-j1-3]/" }
6$0 ~ r2	{ print $0 " matches /[^aeiou]/" }
7