Dim oRegExp As Variant 
Set oRegExp = CreateObject ("VBScript.RegExp")
Dim MatchValue As Variant
oRegExp.IgnoreCase = True '设置是否区分字符大小写。 
oRegExp.Global = True '设置全局可用性。
oRegExp.Pattern = "TPP[0-9]{8}"    'TPP开头的8位数字编码

Set MatchValue = oRegExp.Execute("<字符串>")
If MatchValue.Count > 0 then
   Msgbox.MatchValue(0).Value
End if

 

相关文章:

  • 2021-07-27
  • 2021-12-26
  • 2022-12-23
  • 2021-06-04
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-22
  • 2021-11-10
  • 2021-09-23
相关资源
相似解决方案