Regex Pattern : only one of [*] or [?] should be there

后端 未结 0 637
梦如初夏
梦如初夏 2020-12-14 15:55

I was able to do this : ^(?!(?:[^|\\n]*[\\?|\\*+]){2})[^<>@#\\s\\n]+$

But I want to i) add atleast 1 or more occurrences of ? or * to the pattern

相关标签:
回答
  • 消灭零回复
提交回复
热议问题