Main Expression

{#regexp-main}
^((?!badword).)*$

Try It

Click Here