过滤器+ REGEXMATCH+ Regexreplace在案例敏感分析中包括所有特殊角色
如果特定特殊字符可以添加如下:
=FILTER(D1:D, REGEXMATCH(D1:D, "^("®EXREPLACE(TEXTJOIN("|", 1, A:A),"([().])","\\$1")&")$")=FALSE)
但是,当想要分析所有特殊字符时,最好的方法是负面匹配,获取az
,az
和0-9
的所有不同值。
因此,我试图以直接添加的直接添加来重现它,但是当匹配值时,它将匹配的数量返回到零:
=FILTER(D1:D, REGEXMATCH(D1:D, "^("®EXREPLACE(TEXTJOIN("|", 1, A:A),"([^A-Za-z0-9])","\\$1")&")$")=FALSE)
在这种情况下,正确的方法是什么?
In cases specific special characters could be added as follows:
=FILTER(D1:D, REGEXMATCH(D1:D, "^("®EXREPLACE(TEXTJOIN("|", 1, A:A),"([().])","\\$1")&")quot;)=FALSE)
But when wanting to analyze all of them, the best approach would be a negative match, fetching all the different values of A-Z
, a-z
, and 0-9
.
So, I tried to reproduce it with a direct addition that finds the values but when matching the values, it returns the number of matches to zero:
=FILTER(D1:D, REGEXMATCH(D1:D, "^("®EXREPLACE(TEXTJOIN("|", 1, A:A),"([^A-Za-z0-9])","\\$1")&")quot;)=FALSE)
What is the correct approach in this case?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
[。
所有特殊
字符的正则表达式:
-us/doc/web/javascript/guide/pruard_expressions#逃脱“ rel =” nofollow noreferrer“>逃脱
Regular expression of all special characters:
[.*+?^${}()|[\]\\]
Reference:
Escaping