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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

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