use Regular Expression, here is VB code, you can easily find some libary on the net

interview (intervieweree)
Dim a As RegExp
Set a = New RegExp

a.Global = True
a.Pattern = "\\\\"
s = "abc\\\\|def|gh\\\\\\\\\\\|ij\\kl\\\\\m"
b = a.Replace(s, Chr(7))


a.Pattern = "([^\\])\|"
b = a.Replace(b, "$1 ")
a.Pattern = "\\\|"
b = a.Replace(b, "|")

a.Pattern = "\\(\w)"
b = a.Replace(b, "$1")

a.Pattern = Chr(7)
b = a.Replace(b, "\")
(#368402@0)
2002-2-14 -05:00

回到话题: Java TEST!!

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

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