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