I would like to match these characters: [ ] ( ) in a character class in a regex, how can I do that?
echo 'some text (some text in parenthesis) [some other in brackets]' | grep '[[]()]'
This one doesn't match any character.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…