Skip to main content
Stack Overflow
  1. About
  2. For Teams

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Draft saved
Draft discarded
Cancel
3
  • what version of python are you using? If you are using version 3 try removing the u prefix on the strings since all strings are unicode. Commented May 16, 2017 at 14:22
  • python 3, following the answer pattern = re.compile(u'(【(.*?)\】)') is working for me Commented May 16, 2017 at 15:04
  • In Python 3, you do not need u prefix. Commented May 16, 2017 at 15:55

lang-py

AltStyle によって変換されたページ (->オリジナル) /