regex: what does [^ ] mean?# Unix - 噫吁兮,危乎高哉
f*y
1 楼
s/^([^ ]+) +([^ ]+)/$2 $1/;
the expression above is to swap the first two words..
what does [^ ] mean? it matches a space at the
first charactor position of a string?
the expression above is to swap the first two words..
what does [^ ] mean? it matches a space at the
first charactor position of a string?