正则表达式 +西里尔字母闪烁
正则表达式(用于搜索字符串中的单独单词)"\\bword\\b"
,如果单词是西里尔字符,则似乎在 Flash 中不起作用。如果单词是西里尔字符,例如 "[,]word[,]"
就可以正常工作。
有谁知道如何解决问题,或者如何搜索字符串中的单独单词?
先感谢您!
Regular expression(for searching separate words in string) "\\bword\\b"
, seem not to work in flash if word is of cyrillic characters. If word is of cyrillic characters e.g. "[,]word[,]"
works as it should.
Does anyone know how to solve the problem, or how to seach separate words in string?
Thank you in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我之前遇到过这个问题,最终在正则表达式中明确确定单词边界。就我而言,搜索空格就足够了,但一般来说,用于分解单词的字符列表几乎是无穷无尽的。
I had this problem before and ended up with determining word boundaries explicitly in regex. In my case, search for spaces was enough, but in general list of characters to break words is almost endless.