×

Loading...

figure it out. Thank you. And thanks everyone who contributes his/her time

interview (intervieweree)
Set regEx = New RegExp
sVariable = "416-1@rfr4535ef34hb-653yuyue904537 73--39 hbhg324-789"
regEx.Global = True
regEx.Pattern = "^(\d+-)(.*)(-\d+)$"
Set oMatches = regEx.Execute(sVariable)
regEx.Pattern = "\D"
sNewVariable = oMatches(0).SubMatches(0) & regEx.Replace(oMatches(0).SubMatches(1), "") & Replace(oMatches(0).SubMatches(2), "-", "ext")
(#366886@0)
2002-2-12 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: A Small VB Question (post again)

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论