我需要一个C#正则表达式,可以找到字符串中的图案。C#正则表达式匹配模式[文字]文字(更多)
这是字符串:
[Tommy] wants 'gum' and [Johny's last name] is ('Smith', 'Doe', 'Black') and [money] is not ('char', 'string') and [Mr Smith's [right hand man]] is ('Johny', 'Tommy') and [Mr Smith] sales 'wine'
我所考虑退出是:
[Johny's last name] is ('Smith', 'Doe', 'Black') [Mr Smith's [right hand man]] is ('Johny', 'Tommy')
任何事情都可能是括号内,有可能是无限量的括号之间的项目。
显示一些研究/努力工作? – Steve
你的意思是比赛应该是(...)吗? –
我们应该用 做“[汤米]想‘胶’anfds] dsfds [dsfdd [佐尼的姓氏]是(‘史密斯’,‘李四’,‘黑’)”? 它是“[dsfdd [佐尼的姓氏]是(‘史密斯’,‘李四’,‘黑’)”或 “[佐尼的姓氏]是(‘史密斯’,‘李四’,‘黑’)”? – MaLiN2223