Thursday, June 19, 2014

Split string with delimeter in asp.net c#

 string str= "test \ from | chetan";

string[] Fname = str.Split(new Char[] { '"', '|', '\'' }, StringSplitOptions.RemoveEmptyEntries);

Result Will be:
test
from
chetan

No comments:

Post a Comment

Complete Authentication System in ASP.NET Core using JWT

JWT (JSON Web Token) authentication is widely used for securing APIs in modern applications. In this article, we will build a complete authe...