Using GNU bash (version 4.0.35(1)-release (x86_64-suse-linux-gnu), I would like to negate a test with Regular Expressions. For example, I would like to conditionally add a p
You had it right, just put a space between the ! and the [[ like if ! [[
!
[[
if ! [[