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 -05:00

回到话题: A Small VB Question (post again)

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论

URL:   
http://www.rolia.net/zh/post.php?f=0&p=366886