英文:
Match a specific pattern in a string
问题
我有一个字符串 err = 重复值不允许用于属性: { a_id_1_a_name_1 dup 键 { "1", "yes" }
我如何检查我的字符串是否具有模式 任意字符串_数字_任意字符串_数字
这里的 任意字符串
意味着任何单词或字符。
英文:
I have a string err = Duplicate value(s) are not allowed for attribute(s): { a_id_1_a_name_1 dup key { "1", "yes" }
How can I check that my string has a pattern anyString_digit_anystring_digit
Here anyString
means any word or character.
专注分享java语言的经验与见解,让所有开发者获益!
评论