Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "Its" "Suposed" "To" "Be" "Like" "This"
- protected void btnSend_Click(object sender, EventArgs e)
- {
- string[] words = txtText.Text.Split(' ');
- foreach (string word in words)
- {
- string test = word.Replace(word, '"' + word + '"');
- }
- lblText.Text = words.ToString();
- }
- lblText.Text = Regex.Replace(lblText.Text, @"w+", ""$0"")
- lblText.Text = Regex.Replace(lblText.Text, @"S+", ""$0"")
- protected void btnSend_Click(object sender, EventArgs e)
- {
- string[] words = txtText.Text.Split(' ');
- foreach (string word in words)
- {
- string test = word.Replace(word, '"' + word + '"');
- }
- lblText.Text = words.ToString();
- }
- protected void btnSend_Click(object sender, EventArgs e)
- {
- string[] words = txtText.Text.Split(' ');
- string test = String.Empty;
- foreach (string word in words)
- {
- test += word.Replace(word, '"' + word + '"');
- }
- lblText.Text = test.ToString();
- }
- string input ="It's going to be a fine day";
- string[] words = input.Split(' ');
- string result = String.Empty;
- foreach (string word in words)
- {
- result += String.Format(""" + word + "" ");
- }
- protected void btnSend_Click(object sender, EventArgs e)
- {
- string test = String.Empty;
- string[] words = txtText.Text.Split(' ');
- foreach (string word in words)
- {
- test += String.Format(""" + word + "" ");
- }
- lblText.Text = test;
- }
- return String.Join(" ", txtTextText.Split(' ').Select( word => """ + word """));
- lblText.Text = String.Join(" ", txtText.Text.Split(' ').Select(x => """ + x + """));
- List<string> list = new List<string>();
- int i = 0;
- yourStringArray.ToList().ForEach(x => list.Add(string.Format("'{0}'", yourStringArray[i++])));
- string txtText = "this is a string";
- string[] words = txtText.Split(' ');
- txtText = @"""" + string.Join(@"""", words) + @"""";
- "this"is"a"string"
- protected void btnSend_Click(object sender, EventArgs e)
- {
- string input = "It's going to be a fine day";
- string[] words = input.Split(' ');
- StringBuilder sb = new StringBuilder();
- foreach (string word in words)
- {
- if (!string.IsNullOrEmpty(word))
- {
- sb.Append(""");
- sb.Append(word);
- sb.Append("" ");
- }
- }
- lblText.Text = sb.ToString();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement