Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

find-text-in-string-with-c-sharp

public static string getBetween(string strSource, string strStart, string strEnd)
{
    if (strSource.Contains(strStart) && strSource.Contains(strEnd))
    {
        int Start, End;
        Start = strSource.IndexOf(strStart, 0) + strStart.Length;
        End = strSource.IndexOf(strEnd, Start);
        return strSource.Substring(Start, End - Start);
    }

    return "";
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: parse json array c# 
Csharp :: make a list c# 
Csharp :: c# array 
Csharp :: convert.tostring with datetime string 
Csharp :: how to clone something unity 
Csharp :: what is a protected int c# 
Csharp :: two variable in one loop c# 
Csharp :: c# find element by condition 
Csharp :: what is public static void 
Csharp :: unity log warning 
Csharp :: c# web api return image file 
Csharp :: c# color hex 
Csharp :: how to save datagridview data to database in c# windows application 
Csharp :: capitalize c# 
Csharp :: c# get type of object 
Csharp :: c# csv read write 
Csharp :: c# is in array 
Csharp :: c# datetime add 
Csharp :: c# save pdf to folder 
Csharp :: c# calculator 
Csharp :: unity new vector3 
Csharp :: c# new object without class 
Csharp :: lock pc using c# 
Csharp :: c# get folder path from file path 
Csharp :: c# write to output window 
Csharp :: c# round double 
Csharp :: how to create empty text file in c# 
Csharp :: unity find child by name 
Csharp :: show snackbar without scaffold flutter 
Csharp :: how to add headers to scripts in unity 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =