I was able to do this : ^(?!(?:[^|\\n]*[\\?|\\*+]){2})[^<>@#\\s\\n]+$
^(?!(?:[^|\\n]*[\\?|\\*+]){2})[^<>@#\\s\\n]+$
But I want to i) add atleast 1 or more occurrences of ? or * to the pattern