source: trunk/essentials/sys-apps/gawk/test/match1.awk

Last change on this file was 3076, checked in by bird, 18 years ago

gawk 3.1.5

File size: 254 bytes
Line 
1BEGIN {
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.