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' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -