vb.net - How to set only part of a string in a variable -
i trying make simple skype bot give response when user sends message option.
my issue when user responds "!resolve username"
tries resolve whole string.
how select username response , place in variable?
elseif msg = "resolve" or msg = "resolve" 'send usernamer sever , saves response in var dim resolvedip string = new system.net.webclient().downloadstring( "http://api.c99.nl/skyperesolver.php?key=korrupted.1020ull&username=" + pmessage.body) 'prints ip c.sendmessage(resolvedip)
is kind of thing need?
dim username = _ regex _ .match("!resolve user3812866", "^!resolve (.*)$", regexoptions.ignorecase) _ .groups(1) _ .value
now username
equals "user3812866"
.
Comments
Post a Comment