我正在使用的javascript:
javascript: c = '{unit}, ({coords}) {player} |{distance}| {return}';
p = ['Scout', 'LC', 'HC', 'Axe', 'Sword', 'Ram', '***Noble***'];
function V() {
return 1;
}
window.onerror = V;
function Z() {
d = (window.frames.length > 0) ? window.main.document : document;
aid = d.getElementById('editInput').parentNode.innerHTML.match(/id\=(\d+)/)[1];
function J(e) {
vv = e.match(/\d+\|\d+/g);
return (vv ? vv[vv.length - 1].match(/((\d+)\|(\d+))/) : null);
}
function K(e) {
f = parseInt(e, 10);
return (f > 9 ? f : '0' + f);
}
function L(g, e) {
return …Run Code Online (Sandbox Code Playgroud) 我需要将我提取的文本(使用正则表达式)放在a中TextBox,而不是a中MessageBox.
这是我目前的代码:
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim source As String
Using wc As New WebClient()
source = wc.DownloadString("http://www.twstats.com/en71/index.php?page=rankings&mode=players")
End Using
Dim mcol As MatchCollection = Regex.Matches(source, "page=player&id=\d+"">(.+)</a>")
For Each m As Match In mcol
MessageBox.Show(m.Groups(1).Value)
Next
End Sub
Run Code Online (Sandbox Code Playgroud)
现在我需要添加显示MessageBox在a中的文本TextBox.
我怎样才能做到这一点?
编辑:
如果我TextBox在循环中使用a 而不是MessageBox它只显示最后提取的值.