xref: /freebsd/contrib/one-true-awk/testdir/t.sub0 (revision 31ba4ce8898f9dfa5e7f054fdbc26e50a599a6e3)
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