阅读背景:

Python regex提取字符串的一部分

来源:互联网 

I want to extract a portion of a large string. There's a target word and an upper bound on the number of words before and after that. The extracted substring must therefore contain the target word along with the upper bound words before and after it. The before and after part can contain lesser words if the target word is closer to the beginning or end of the text.I want to extract a portion of a large string.




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: