匹配字符串中的特定模式

huangapple 未分类评论46阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2020年4月6日 21:31:51
  • 转载请务必保留本文链接:https://java.coder-hub.com/61061034.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定