Advertisement
Guest User

Untitled

a guest
May 30th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.73 KB | None | 0 0
  1.         private void button1_Click(object sender, EventArgs e)
  2.         {
  3.             String[] paramSplit;
  4.             String username, password;
  5.             paramSplit = System.Text.RegularExpressions.Regex.Split(textBox2.Text, "{#param#}");
  6.             username = getBetween(textBox1.Text, paramSplit[0], paramSplit[1]);
  7.             password = textBox1.Text;
  8.             password = password.Replace(username, null);
  9.             for (int i = 0; i < paramSplit.Count; i++)
  10.             {
  11.                 if (paramSplit[i].Length != 0)
  12.                 {
  13.                     password = password.Replace(paramSplit[i], null);
  14.                 }
  15.             }
  16.             textBox1.Text = username + Environment.NewLine + password;
  17.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement