Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Vb.NET 中,我想检查一个字符串是否类似于:
package_name.Procedure_name或 PackageName.Procedure_Name_Something_Else或 package_name.ProcedureName
package_name.Procedure_name
PackageName.Procedure_Name_Something_Else
package_name.ProcedureName
所以我需要类似的东西:word.otherWord
word.otherWord
我的问题是我尝试了很多正则表达式 ,但我无法实现我的目标。我尝试的最新正则表达式是 :([\w-@]+\.)+([\w-@])匹配点后的第一个字符。谁能告诉我方向或提示?
([\w-@]+\.)+([\w-@])
你的正则表达式应该是
[\w-@]+[.][\w-@]+