Extracting user&pass from richtextbox1
Hello im new to this forum
I posted this request twice into some forums and sadly no luck
so im trying this time and hope will be fine.
i need help doing so
I had a richtextbox1 contains the following text:
Code:
<REPLY username =chicco1502
status = OK
user_id =3377436
>
<user_register.php: 2011-02-19 10:00:06
POST
username=edwardzhao
[email protected]
email_confirm=
password=640716
password_confirm=640716
country=CN
msisdn=
isyp=0
isPremiumChat=
dob=1964-07-16
sub1=1
sub2=1
is3g=
>
<REPLY username =edwardzhao
status = OK
user_id =3377437
>
<user_register.php: 2011-02-19 10:00:31
POST
username=aragorn
email=gabriele.*[email protected]
email_confirm=
password=010585
password_confirm=010585
country=IT
msisdn=
isyp=0
isPremiumChat=
dob=1982-01-06
sub1=1
sub2=1
is3g=
>
and so on..
So once i click button1 it should extract only Email plus Password into
Email:Password
edwardzh*[email protected]:640716
gabriele.sc*[email protected]:010585
so the email sympol is email= <email that should be extracted here>
and so the password sympol password= <password that should be extracted here>
if you didn't exactly understood what i meant you could download the source code about little clear example about what i needed here
http://www.mediafire.com/?u82ygakw2ffv58p
Thanks in advance!
Re: Extracting user&pass from richtextbox1
Use string.indexOf() to first find '<user_register.php'
Once you have that index, then you can search for 'email='
Once you have the index for the string 'email=' then you can get the substring from the index of '=' + 1 to then end of the line (vbnewline or controlchars.LF).
Do the same thing for password.
You would just keep doing this until the index of <user_register.php returned an index of -1.
Justin
Re: Extracting user&pass from richtextbox1
Quote:
Originally Posted by
MonkOFox
Use string.indexOf() to first find '<user_register.php'
Once you have that index, then you can search for 'email='
Once you have the index for the string 'email=' then you can get the substring from the index of '=' + 1 to then end of the line (vbnewline or controlchars.LF).
Do the same thing for password.
You would just keep doing this until the index of <user_register.php returned an index of -1.
Justin
thanks for your reply :)
could u please post the button code,
Because i dont find this clear to me :/
Re: Extracting user&pass from richtextbox1