gpt4 book ai didi

regex - (?<= x)在正则表达式中是什么意思?

转载 作者:行者123 更新时间:2023-12-04 05:35:10 25 4
gpt4 key购买 nike

(?<=x)在正则表达式中是什么意思?

顺便说一下,我已经阅读了here手册。

最佳答案

这是一个positive lookbehind

(?<=a)b (positive lookbehind) matches the b (and only the b) in cab, but does not match bed or debt.



您不会在任何JavaScript手册中找到它,因为它是 not supported in JavaScript regex:

Finally, flavors like JavaScript, Ruby and Tcl do not support lookbehind at all, even though they do support lookahead.

关于regex - (?<= x)在正则表达式中是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2341184/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com