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

Popular posts from this blog

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -