Can i check if there is another captured character between two same character?

后端 未结 0 1582
予麋鹿
予麋鹿 2020-12-28 08:57

I want to check:
"abcda" => true
"abada" => false
"bcdefb" => true

I tried to do it by "(.)(?!.*\\1)\\1"<

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