带句点的值的xsd正则表达式模式限制

时间:2014-08-13 21:57:11

标签: xml regex xsd

我需要将xsd中的字符串类型属性限制为模式x.x.x.x的值  其中:

- X is any character or number or symbol eg >?, but not any white space (space, carriage 
  return etc) at s
- . is just single period

所以示例值是:

rob.jones.male.65

ste%ve.d.445.£dd

无效模式是:

rob..male.65

rob.jones. male.65

rob.jones.65

1 个答案:

答案 0 :(得分:0)

您无法使用

的任何理由
[^\. 	
]+(\.[^\. 	
]+)*

相关问题