gpt4 book ai didi

c# - N 个连续字符的 .NET 正则表达式

转载 作者:行者123 更新时间:2023-11-30 19:50:14 26 4
gpt4 key购买 nike

我需要一个匹配字符串中三个连续字符(任何字母数字字符)的正则表达式。

Where 2a82a9e4eee646448db00e3fccabd8c7 "eee" would be a match.

Where 2a82a9e4efe64644448db00e3fccabd8c7 "444" would be a match.

等等

最佳答案

使用反向引用。

([a-zA-Z0-9])\1\1

关于c# - N 个连续字符的 .NET 正则表达式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2564092/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com