xref: /freebsd/contrib/one-true-awk/bugs-fixed/rstart-rlength.awk (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1BEGIN {
2	str="\342\200\257"
3	print length(str)
4	match(str,/^/)
5	print RSTART, RLENGTH
6	match(str,/.+/)
7	print RSTART, RLENGTH
8	match(str,/$/)
9	print RSTART, RLENGTH
10}
11