问题描述
我是新的正则表达式,我已经写了^([A-z][A-Za-z]*\s*[A-Za-z]*)$
这个名字和空白(空格)姓氏.
名字叫Will always Capital.
以下输入数示例正确
I am new Regular Expression i have write ^([A-z][A-Za-z]*\s*[A-Za-z]*)$
this for first name and as number of white space(space) lastname.
First name is Will always Capital.
It is correct fo Example following number of input
1. Xyz dfg
2.Fgd fgg
将只能输入名字的输入.
1.Xyz
仅姓氏会输入什么\ s?
我为Asp.net文本框创建正则表达式验证
Will can write input only for first name.
1.Xyz
What \s will only first name will take input ????
I creating for Asp.net Textbox Regular Expression Validation
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
ControlToValidate="TextBox1" ErrorMessage="RegularExpressionValidator"
ValidationExpression="^([A-z][A-Za-z]*\s*[A-Za-z]*)$"></asp:RegularExpressionValidator>
推荐答案
1. Xyz dfg
2.Fgd fgg
将只能输入名字的输入.
1.Xyz
仅姓氏会输入什么\ s?
我为Asp.net文本框创建正则表达式验证
Will can write input only for first name.
1.Xyz
What \s will only first name will take input ????
I creating for Asp.net Textbox Regular Expression Validation
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
ControlToValidate="TextBox1" ErrorMessage="RegularExpressionValidator"
ValidationExpression="^([A-z][A-Za-z]*\s*[A-Za-z]*)
^([A-z][A-Za-z]*\s+[A-Za-z]*)|([A-z][A-Za-z]*)
这篇关于正则表达式是正确的名字和姓氏或仅对于Asp.net的名字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!