xref: /freebsd/contrib/one-true-awk/testdir/t.sub0 (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1
2{sub(/[aeiou]/, "foo"); print}
3{sub("[aeiou]", "foo"); print}
4
5{gsub(/[aeiou]/, "foo"); print}
6{gsub("[aeiou]", "foo"); print}
7
8{sub(/[aeiou]/, "&foo"); print}
9{sub("[aeiou]", "&foo"); print}
10
11{gsub(/[aeiou]/, "&foo"); print}
12{gsub("[aeiou]", "&foo"); print}
13
14{sub(/[aeiou]/, "\&foo"); print}
15{sub("[aeiou]", "\&foo"); print}
16
17{gsub(/[aeiou]/, "\&foo"); print}
18{gsub("[aeiou]", "\&foo"); print}
19