반응형

http://stackoverflow.com/questions/928072/whats-the-regular-expression-that-matches-a-square-bracket

 

How about using backslash (\) in front of the square bracket. Normally square brackets match a character class.

 

[와 ]를 쓰기전에 \를 앞에 넣어서 처리하면 된다.

반응형

+ Recent posts