Apr 28, 2004 #1 B bpayne111 Junior Contributor Joined Feb 28, 2003 Messages 325 Location BFE C# string s = "abc{e4e5f4} def"; I have this string and i'd 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 i'd like to extract the string between { }. Can Regex do this for me quick and easy? thanks brandon
Apr 28, 2004 #2 D dynamic_sysop Senior Contributor 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]);