Generation

regex explanationTue, 22 Nov 2022

find all words that contains "hoge" but, do not match "(hoge)"

$ echo "hoge" | grep -o -E '[^(]hoge[^)]' hoge

Questions about programming?Chat with your personal AI assistant