I am trying to match everything except * or ** or infinity number of *
I have already writed such regex:
^(?!\*).+$|^.*[^\*]$|(?<=\*).+
I need to add or statement which would remove match: '****' Or write entire new one which:
Should not match when *
Should not match when **
Should not match when ***
ect.
Should match when A9()*
Should match when *A9()
Should match when A(*
Should match when A*()*
Should match when A9*)
Should match when A9()
ect.
Live example: https://regex101.com/r/pw2z9E/1