什么是正恩pression一个西班牙语单词? [英] What is the regular expression for a Spanish word?
本文介绍了什么是正恩pression一个西班牙语单词?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
正前pression语言使用\ B至包括A..Z,A..Z,0..9和_,\ B就被定义为一个单词边界。
Regular expression languages use \B to include A..Z, a..z, 0..9, and _, and \b is defined as a word boundary.
我怎么能写一个正EX pression匹配所有有效的西班牙语单词,包括字符,如:?A,I,O,E,N,等
How can I write a regular expression that matches all valid Spanish words, including characters such as: á, í, ó, é, ñ, etc.?
我使用的是.NET。
推荐答案
使用西班牙语的语言环境,使您的正则表达式语言环境敏感。
Use a Spanish locale and make your regex locale-sensitive.
这篇关于什么是正恩pression一个西班牙语单词?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文