I would like the remove every line that doesn't contain the next characters:
! ? # * $ [ ] { } - _ ( )
How should I do that, please?
I would like the remove every line that doesn't contain the next characters:
! ? # * $ [ ] { } - _ ( )
How should I do that, please?
^[^!?#*$\[\]{}\-_()]+\R?LEAVE EMPTY[^!?#*$\[\]{}\-_()] is a negative character class that match a character that is not !, ?, #, *, $, [, ], {, }, -, _, ( or )