【发布时间】:2014-08-12 00:58:19
【问题描述】:
我需要一种好的/简单的方法来使用正则表达式匹配 JSON Schema 模式中的任何有效 Unicode 字母,因为 [a-zA-Z] 不足以支持来自不同国家的字母,例如中国和希腊。我知道这是可能的,例如Perl 和 XRegExp 使用 \p{L} 或 \p{Letter}(来源:http://www.regular-expressions.info/unicode.html)。
如何在 JSON Schema 模式中表达\p{L}?最好是我不必明确列出所有可能的有效 Unicode 字母的方式。
提前致谢! :-)
【问题讨论】:
标签: regex json unicode jsonschema letter