c# find where word is contained in a string
public static string getBetween(string strSource, string strStart, string strEnd)
{
int Start, End;
if (strSource.Contains(strStart) && strSource.Contains(strEnd))
{
Start = strSource.IndexOf(strStart, 0) + strStart.Length;
End = strSource.IndexOf(strEnd, Start);
return strSource.Substring(Start, End - Start);
}
else
{
return "";
}
}
Also in C#:
- unity movetowards 2d
- convert system.byte a string c#
- draw sphere cast unity with program
- what is type unity
- datagridview column color c#
- c# initialize empty array
- Unity3d GPS code
- c# clear list items
- create asp.net which send email and sms using own api
- mysql C# select pk and all columns datareader
- : ? conditioanl statement c#
- unity c# is not equal to
- Generate Genealogy view in mvc C# using Google Organizational Chart
- loop gridcontrol devexpress c#
- wpf binding ancestor codebehind
- iphone
- how to access the dictionary from another script in unity
- c# connect tcp
- c# catch two exceptions in one block
- c# copy file
- string format c#
- Unity if object doens't exist
- c# wpf row definition height * in code
- convert string to boolean c#