source:
trunk/essentials/sys-apps/gawk/test/match1.awk
Last change on this file was 3076, checked in by , 18 years ago | |
---|---|
File size: 254 bytes |
Line | |
---|---|
1 | BEGIN { |
2 | data = "foooobazbarrrrr" |
3 | match(data, /(fo+).+(bar*)/, arr) |
4 | for (i = 0; i in arr; i++) { |
5 | printf("arr[%d] = \"%s\"\n", i, arr[i]) |
6 | printf("arr[%d, \"start\"] = %s, arr[%d, \"length\"] = %s\n", |
7 | i, arr[i, "start"], i, arr[i, "length"]) |
8 | } |
9 | } |
Note:
See TracBrowser
for help on using the repository browser.