source:
trunk/essentials/sys-apps/gawk/test/gnuops3.awk
Last change on this file was 3076, checked in by , 18 years ago | |
---|---|
File size: 290 bytes |
Line | |
---|---|
1 | # Mon Jan 31 09:57:30 IST 2005 |
2 | # test both dfa and regex matchers on \B |
3 | # tests from Stepan Kasal, kasal@ucw.cz |
4 | BEGIN { |
5 | |
6 | print (" " ~ / \B /) # test dfa matcher |
7 | print ("a b" ~ /\B/) |
8 | print (" b" ~ /\B/) |
9 | print ("a " ~ /\B/) |
10 | |
11 | a = " " |
12 | gsub(/\B/, "x", a) # test regex matcher |
13 | print a |
14 | } |
Note:
See TracBrowser
for help on using the repository browser.