Complexity of Regex substitution

前端 未结 8 1320
傲寒
傲寒 2020-12-01 16:58

I didn\'t get the answer to this anywhere. What is the runtime complexity of a Regex match and substitution?

Edit: I work in python. But would like to know in genera

8条回答
  •  天命终不由人
    2020-12-01 17:08

    Depends on the implementation. What language/library/class? There may be a best case, but it would be very specific to the number of features in the implementation.

提交回复
热议问题