qse/ase/test/awk/match.awk

20 lines
413 B
Awk
Raw Normal View History

2006-10-18 14:06:47 +00:00
BEGIN {
print match ("hhhheeeo", /e+/);
print RSTART, RLENGTH;
print match ("heeeo", /e/);
print RSTART, RLENGTH;
print match ("heeeo", /t/);
print RSTART, RLENGTH;
print "--------------------------";
print match ("hhhheeeo", "e+");
print RSTART, RLENGTH;
print match ("heeeo", "e");
print RSTART, RLENGTH;
print match ("heeeo", "t");
print RSTART, RLENGTH;
print "--------------------------";
}