xref: /freebsd/contrib/one-true-awk/testdir/t.re4 (revision 924226fba12cc9a228c73b956e1b7fa24c60b055)
1BEGIN {	r1 = "xxx"
2	r2 = "xxx" ":"
3	r3 = ":" r2
4	r4 = "a"
5}
6
7$0 ~ r1	{ print $0 " matches " r1 }
8$0 ~ r2	{ print $0 " matches " r2 }
9$0 ~ r3	{ print $0 " matches " r3 }
10$0 ~ r4	{ print $0 " matches " r4 }
11