I have five strings, and I'd like to only match anything that looks like Hello world! without - in it.
Example
Hello world!
Hello-world!
Hi world!
Hello~world!
Hello?world!
regex pattern which excludes - is ^((?!-).)*$, but it picks up Hi world.
Desired output
Hello world!
Hello~world!
Hello?world!