Regex negation?

前端 未结 3 896
天涯浪人
天涯浪人 2021-01-04 00:29

I\'m playing Regex Golf (http://regex.alf.nu/) and I\'m doing the Abba hole. I have the following regex that matches the wrong side entirely (which is what I was trying to

3条回答
  •  无人及你
    2021-01-04 01:07

    Using the explanation here: https://stackoverflow.com/a/406408/584663

    I came up with: ^((?!((\w)(\w)\4\3)).)*$

提交回复
热议问题