Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Dyalog APL 中使用运算符 ⎕S 时,我只对是否匹配感兴趣,所以表达式
('foo' ⎕S F) 'foo' 'bar' 'foofoo'
应该评估为
.→----. |1 0 1| '~----'
什么函数(或字符串)F会实现这个?
编辑:这个例子只是为了说明这一点。在实践中,正则表达式可能要复杂得多。