天天看點

shell正規表達式比對樣例

正規表達式比對樣例:

test

^test

test$

^test$

[Tt]est

a[test]b 

a[^test]b

te.t

t.*t

[0-9a-zA-Z]

\(ab\)\(b)[def]*\2\1

\(why\).*\1

\(["']\).*\1