How can I say in regex:
Any part of a line starting with a capital letter containing at least one whitespace character that does not contain a line
" _ "(underscore space) and ending with the line "!!!" (without quotes)?
I'm having problems with the "not containing" part.
Here is what I still have:
[A-Z].* .*!!!
How do I change this to also indicate "Do not contain" _ "?
This does not have to be the string "_". How can I say "not containing" ANY string? For example, not containing a "dog"?
Edit: I would like the solution to be compatible with Php "preg_replace"
Edit: Examples:
Examples for "_":
Abc xyz !!! <--- Matches
, !!! < ---
_ !!! < ---
"":
!!! < --- , ( "" )
, !!! < ---