blob: bcd40aa1788e448f37dd23e5ebf89e0a852ad67f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# Mon Jan 31 09:57:30 IST 2005
# test both dfa and regex matchers on \B
# tests from Stepan Kasal, kasal@ucw.cz
BEGIN {
print (" " ~ / \B /) # test dfa matcher
print ("a b" ~ /\B/)
print (" b" ~ /\B/)
print ("a " ~ /\B/)
a = " "
gsub(/\B/, "x", a) # test regex matcher
print a
}
|