Regex nested parenthesis in python

前端 未结 4 1938
灰色年华
灰色年华 2021-01-03 03:41

I have something like this:

Othername California (2000) (T) (S) (ok) {state (#2.1)}

Is there a regex code to obtain:

Other         


        
4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-03 04:02

    other case is:

    ^(\w+\s?\w+)\s?\(\d{1,}\)\s?\(\w+\)\s?\(\w+\)\s?\((\w+)\)\s?.*#(\d.\d)
    

提交回复
热议问题