c# - Split a string with '[' and ']' -


i know regex split pattern (using c#) string packed [ , ].

for example, string:

this [word1] , [word2] 

i should word1 , word2.

the following should trick:

\[(?<word>[^\]]*)\] 

i suggest use regex tool assist you. i'm sure there couple use expresso , helps these pesky things :)


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -