Apr 28, 2004 #1 B bpayne111 Well-known member Joined Feb 28, 2003 Messages 326 Location BFE C# string s = "abc{e4e5f4} def"; I have this string and id like to extract the string between { }. Can Regex do this for me quick and easy? thanks brandon
C# string s = "abc{e4e5f4} def"; I have this string and id like to extract the string between { }. Can Regex do this for me quick and easy? thanks brandon
Apr 28, 2004 #2 dynamic_sysop Well-known member Joined Oct 1, 2002 Messages 1,039 Location Ashby, Leicestershire. like this you mean maybe? C#: string s = "abc{e4e5f4} def"; MessageBox.Show(Regex.Split(s , "([{}]+)")[2]);
like this you mean maybe? C#: string s = "abc{e4e5f4} def"; MessageBox.Show(Regex.Split(s , "([{}]+)")[2]);