Link to home
Start Free TrialLog in
Avatar of mathieu_cupryk
mathieu_cuprykFlag for Canada

asked on

Regular expression for Headline

<asp:RegularExpressionValidator ID="REVtxtHeadLine" runat="server" ControlToValidate="txtHeadLine"
                                Font-Size="X-Small" SetFocusOnError="true" ValidationExpression="^[a-zA-Z]{1}[a-zA-Z]{1,74}$"
                                ErrorMessage="<b>A valid HeadLineis required,</b><br />Please type between 2 to 128 letters<br />(One Line Sentence)"
                                Display="None"></asp:RegularExpressionValidator>

Shoud be aloud spaces, periods and commons, bracket any charact except something that can screw up database.
Avatar of elimesika
elimesika
Flag of Israel image

HI

This should be OK
"[a-zA-Z .,()]+"

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of elimesika
elimesika
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mathieu_cupryk

ASKER

^[a-zA-Z0-9 .,()]{1,74}$

?
^[a-zA-Z0-9 .,()]{1,127}$
I also want specal characters?
",,,,,,,,,,,,,,,,........................"