Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/282.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Bot框架表单流模式匹配与Regex_C#_Regex_Botframework_Formflow - Fatal编程技术网

C# Bot框架表单流模式匹配与Regex

C# Bot框架表单流模式匹配与Regex,c#,regex,botframework,formflow,C#,Regex,Botframework,Formflow,我正在尝试将一个表单属性设置为只接受文本和数字,不包含空格和特殊字符。我尝试了几个正则表达式,但没有成功,请帮助。下面是我的表单流属性代码 [Pattern(@"^[\w,\s-]+\.[A-Za-z]{3}$")] 我最近用过 ^[a-zA-Z\u00c4\u00e4\u00d6\u00f6\u00dc\u00fc\u00df]+[a-zA-Z\u00c4\u00e4\u00d6\u00f6\u00dc\u00fc\u00df0-9_]*$ 我认为,它包括德国乌姆劳特(Umlaute)和埃

我正在尝试将一个表单属性设置为只接受文本和数字,不包含空格和特殊字符。我尝试了几个正则表达式,但没有成功,请帮助。下面是我的表单流属性代码

[Pattern(@"^[\w,\s-]+\.[A-Za-z]{3}$")]
我最近用过

^[a-zA-Z\u00c4\u00e4\u00d6\u00f6\u00dc\u00fc\u00df]+[a-zA-Z\u00c4\u00e4\u00d6\u00f6\u00dc\u00fc\u00df0-9_]*$
我认为,它包括德国乌姆劳特(Umlaute)和埃斯泽特(Eszett)。您可以删除我最近使用的所有\uxxx字符

^[a-zA-Z\u00c4\u00e4\u00d6\u00f6\u00dc\u00fc\u00df]+[a-zA-Z\u00c4\u00e4\u00d6\u00f6\u00dc\u00fc\u00df0-9_]*$

我认为,它包括德国乌姆劳特(Umlaute)和埃斯泽特(Eszett)。您可以删除所有这些\uxxx字符

,那么为什么要在模式中使用
、\s-
\。
?如何定义文本和数字?那么为什么在模式中使用
、\s-
\.
?如何定义文本和数字?