c# - Split the string based on regular expression -
i've array of strings name
, groups[0].id
, types[11].name
.
i want filter string has square brackets , split them 2 parts. ex., groups[0].id
groups
, id
.
how can find strings has square brackets using regular expression?
you can try this
regex.split(input,@"\[.*?\][.]");
Comments
Post a Comment