regex - C# split after "{" and before comma -
How to split after the first bracket and before commas {Brazil, 340, Argentina, 39} <
String: {England, 120, USA, 30, 40} {Spain, 23, India, 45, 23} East I get England, Spain and Argentina from a different ceremony Want to
Any ideas how to write the regex method or alternative methods?
This is probably easier to use matching
foreach ( Match omeach in regex match (string, @ "\ {([^,] *)") console. Light (omac group [1]. Value)
Comments
Post a Comment