Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Bash を使用して一連の文字を照合できます
$ [[ a =~ [abc] ]]; echo $? 0
]ただし、閉じ角括弧をセットに含めたい場合は失敗します
]
$ [[ a =~ [abc\]] ]]; echo $? 1 $ [[ a =~ [abc\\]] ]]; echo $? 1