Take this regular expression: /^[^abc]/. This will match any single character at the beginning of a string, except a, b, or c.
/^[^abc]/
If you add a *
*
.*(\s)*?(?=abc)
For those who want to include line breaks too.
It will match anything and everything(including line breaks(no matter how many or even if no line break) ) until abc is found.
abc