例如示例应用程序,如果您想添加对波兰的邮政编码的支持,那么只需创建一个messages _ pl . properties文件。
Thinking back to the sample application, for example, if you want to add support for Polish postal codes, simply create a messages_pl. properties file.
如果您想知道的话,那么告诉您,用于波兰的邮政编码的正则表达式是 [0-9]{2}-? [0-9]{3}。
The regular expression for Polish postal codes is [0-9]{2}-?[0-9]{3}, in case you're wondering.
应用推荐