Click here to Skip to main content
15,511,837 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
QuestionHelp with regex HTML form validation Pin
robwm19-Oct-14 13:35
robwm19-Oct-14 13:35 
AnswerRe: Help with regex HTML form validation Pin
George Jonsson9-Oct-14 17:26
professionalGeorge Jonsson9-Oct-14 17:26 
SuggestionRe: Help with regex HTML form validation Pin
Richard Deeming9-Oct-14 23:27
mveRichard Deeming9-Oct-14 23:27 
GeneralRe: Help with regex HTML form validation Pin
George Jonsson10-Oct-14 0:14
professionalGeorge Jonsson10-Oct-14 0:14 
GeneralRe: Help with regex HTML form validation Pin
robwm110-Oct-14 7:03
robwm110-Oct-14 7:03 
AnswerRe: Help with regex HTML form validation Pin
Richard Deeming9-Oct-14 23:33
mveRichard Deeming9-Oct-14 23:33 
To match the characters that aren't allowed, try:
[^a-zA-Z\-]

To validate that the string doesn't contain any disallowed characters, use:
^[a-zA-Z\-]+$

For the HTML5 pattern attribute[^], use:
HTML
<input type="text" name="FirstName" required pattern="[a-zA-Z\-]+" />




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Help with regex HTML form validation Pin
robwm110-Oct-14 7:11
robwm110-Oct-14 7:11 
GeneralRe: Help with regex HTML form validation Pin
Richard Deeming10-Oct-14 8:35
mveRichard Deeming10-Oct-14 8:35 
GeneralRe: Help with regex HTML form validation Pin
robwm110-Oct-14 8:39
robwm110-Oct-14 8:39 
GeneralRe: Help with regex HTML form validation Pin
Richard Deeming10-Oct-14 8:47
mveRichard Deeming10-Oct-14 8:47 
QuestionRegular expression date Pin
Member 836446830-May-14 8:27
Member 836446830-May-14 8:27 
QuestionRe: Regular expression date Pin
George Jonsson14-Sep-14 0:21
professionalGeorge Jonsson14-Sep-14 0:21 
AnswerRe: Regular expression date Pin
nagshead_obx9-Oct-14 8:10
nagshead_obx9-Oct-14 8:10 
QuestionRe: Regular expression date Pin
George Jonsson9-Oct-14 17:18
professionalGeorge Jonsson9-Oct-14 17:18 
QuestionRegex to extact lines of code know the start and ending Pin
susanab17-Apr-14 4:25
susanab17-Apr-14 4:25 
QuestionRe: Regex to extact lines of code know the start and ending Pin
Matt T Heffron17-Apr-14 9:14
professionalMatt T Heffron17-Apr-14 9:14 
Question[Solved] Pin
Marco Bertschi20-Mar-14 5:10
professionalMarco Bertschi20-Mar-14 5:10 
GeneralRe: A little help needed... Pin
Marco Bertschi20-Mar-14 6:24
professionalMarco Bertschi20-Mar-14 6:24 
GeneralRe: A little help needed... Pin
Haloniels19977-Sep-14 12:36
Haloniels19977-Sep-14 12:36 
QuestionRe: A little help needed... Pin
Kornfeld Eliyahu Peter20-Mar-14 5:55
professionalKornfeld Eliyahu Peter20-Mar-14 5:55 
AnswerRe: A little help needed... Pin
Marco Bertschi20-Mar-14 6:21
professionalMarco Bertschi20-Mar-14 6:21 
GeneralRe: A little help needed... Pin
Kornfeld Eliyahu Peter20-Mar-14 6:37
professionalKornfeld Eliyahu Peter20-Mar-14 6:37 
GeneralRe: A little help needed... Pin
Marco Bertschi20-Mar-14 6:49
professionalMarco Bertschi20-Mar-14 6:49 
GeneralRe: A little help needed... Pin
Kornfeld Eliyahu Peter20-Mar-14 7:27
professionalKornfeld Eliyahu Peter20-Mar-14 7:27 
GeneralRe: A little help needed... Pin
Marco Bertschi20-Mar-14 11:17
professionalMarco Bertschi20-Mar-14 11:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.