Friday, 6 March 2015

Extract Substring From a String

Structure of the Problem Requirements 

This Program extract substring from a string in C# program. The program extract semicolon which occurred in string many times and in new string put all the alphabet of previous string except semicolon.  

Source Code 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LEPPOST
class Program
static void Main(string[] args)
Console.WriteLine(" \t \t \t Programming Hub\n\n");
String expression = "The; Hands; That; Rock; the Cradl;e Rules; The World;";
String[] strExpression = expression.Split(';');
foreach (String st in strExpression)

Output of the Program

How to extract Substring From a String

Share it Please

About Author!

Asad Niazi is Software Engineer , Programmer, Web Developers and a young mentor of Tech Solutions Desk and Blogging Solutions . Asad Love to writes about Technology, Programming, Blogging and make money online.


Post a Comment