gpt4 book ai didi

javascript - 这个正则表达式在做什么?

转载 作者:行者123 更新时间:2023-12-02 18:47:32 27 4
gpt4 key购买 nike

我认为这个正则表达式是将单词转换为数组,但结果我得到 null

当我想用数组[0]从“facebox otherword”获取第二个单词时

这是正则表达式:

this.rel.match(/facebox\[?\.(\w+)\]?/)

谢谢理查德

最佳答案

http://xenon.stanford.edu/~xusch/regexp/analyzer.html是一个简单的正则表达式分析器(还有许多其他分析器)。 由于它不可链接 ,这里 只是 屏幕截图和 link :

enter image description here

关于javascript - 这个正则表达式在做什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7012262/

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