onelikeone

 

1、提取数字

Function sz(i As String) As String
    Dim regex As Object
    Set regex = CreateObject("VBScript.RegExp")
    regex.Pattern = "[^0-9]"
    regex.ignoreCase = False
    regex.Global = True
    sz = regex.Replace(i, "  ")
    Set regex = Nothing
End Function

 

用法:

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-05-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-22
  • 2022-01-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-18
  • 2021-12-25
  • 2021-08-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案