Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

get text between two strings c#

   public string Between(string STR , string FirstString, string LastString)
    {       
        string FinalString;     
        int Pos1 = STR.IndexOf(FirstString) + FirstString.Length;
        int Pos2 = STR.IndexOf(LastString);
        FinalString = STR.Substring(Pos1, Pos2 - Pos1);
        return FinalString;
    }
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity C# catch index out or range exception 
Csharp :: c# if debug 
Csharp :: Csharp convert string to double 
Csharp :: unity script detect if in prefab edition mode 
Csharp :: creatw list of int in C# 
Csharp :: C# save pdf stream to file 
Csharp :: random from list c# 
Csharp :: move gameobject in unity 2d 
Csharp :: convert array from string to int c# 
Csharp :: c# iorderedenumerable to dictionary 
Csharp :: c# read file into a string 
Csharp :: unity string format time 
Csharp :: #region in c# 
Csharp :: c# get first 5 characters of string 
Csharp :: c# unity camera follow player horizontal axis 
Csharp :: alert message in c# windows application 
Csharp :: custom editor unity 
Csharp :: unity left mouse button 
Csharp :: base64decode C# 
Csharp :: check if ienumerable is empty c# 
Csharp :: stock span problem c# 
Csharp :: c# find index element array 
Csharp :: c# unity destroy first child object 
Csharp :: convert request.form to dictionary c# 
Csharp :: check if network is available c# 
Csharp :: blank background for button wpf 
Csharp :: check if panel has controler c# 
Csharp :: use only one class from a namespace in c# 
Csharp :: how to check is object by this type c# 
Csharp :: how refresh just one table in laravel by terminal 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =