i have a string like
str="arun vijay"
i want only vijay..can anyone tel the regex for this
You can simply do
string str = "Arun Vijay"; string ret = str.Split(' ')[1];
Regex RegExp = new Regex(str.Replace(" ", "|").Trim());
© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.