Click here to Skip to main content
15,860,943 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
AnswerRe: Help with regex HTML form validation Part 2 Pin
Matt T Heffron10-Oct-14 12:43
professionalMatt T Heffron10-Oct-14 12:43 
GeneralRe: Help with regex HTML form validation Part 2 Pin
robwm110-Oct-14 13:06
robwm110-Oct-14 13:06 
AnswerRe: Help with regex HTML form validation Part 2 Pin
Matt T Heffron10-Oct-14 13:13
professionalMatt T Heffron10-Oct-14 13:13 
GeneralRe: Help with regex HTML form validation Part 2 Pin
robwm110-Oct-14 13:14
robwm110-Oct-14 13:14 
SuggestionRe: Help with regex HTML form validation Part 2 Pin
Matt T Heffron10-Oct-14 13:18
professionalMatt T Heffron10-Oct-14 13:18 
GeneralRe: Help with regex HTML form validation Part 2 Pin
robwm110-Oct-14 13:19
robwm110-Oct-14 13:19 
GeneralRe: Help with regex HTML form validation Part 2 Pin
robwm111-Oct-14 11:00
robwm111-Oct-14 11:00 
GeneralRe: Help with regex HTML form validation Part 2 Pin
Matt T Heffron13-Oct-14 6:37
professionalMatt T Heffron13-Oct-14 6:37 
robwm1 wrote:
^[a-zA-Z\-\s']+?\.$

This was so.... close.
When I suggested the \. I forgot the conditional aspect of the the dot at the end. (Sorry.)
Just move the ? to be after the \.
^[a-zA-Z\-\s']+\.?$

the ? means exactly the same thing as {0,1}
A positive attitude may not solve every problem, but it will annoy enough people to be worth the effort.

GeneralRe: Help with regex HTML form validation Part 2 Pin
robwm113-Oct-14 6:59
robwm113-Oct-14 6:59 
AnswerRe: Help with regex HTML form validation Part 2 Pin
Matt T Heffron10-Oct-14 13:15
professionalMatt T Heffron10-Oct-14 13:15 
GeneralRe: Help with regex HTML form validation Part 2 Pin
robwm110-Oct-14 13:18
robwm110-Oct-14 13:18 
QuestionHelp with regex HTML form validation Pin
robwm19-Oct-14 12:35
robwm19-Oct-14 12:35 
AnswerRe: Help with regex HTML form validation Pin
George Jonsson9-Oct-14 16:26
professionalGeorge Jonsson9-Oct-14 16:26 
SuggestionRe: Help with regex HTML form validation Pin
Richard Deeming9-Oct-14 22:27
mveRichard Deeming9-Oct-14 22:27 
GeneralRe: Help with regex HTML form validation Pin
George Jonsson9-Oct-14 23:14
professionalGeorge Jonsson9-Oct-14 23:14 
GeneralRe: Help with regex HTML form validation Pin
robwm110-Oct-14 6:03
robwm110-Oct-14 6:03 
AnswerRe: Help with regex HTML form validation Pin
Richard Deeming9-Oct-14 22:33
mveRichard Deeming9-Oct-14 22:33 
GeneralRe: Help with regex HTML form validation Pin
robwm110-Oct-14 6:11
robwm110-Oct-14 6:11 
GeneralRe: Help with regex HTML form validation Pin
Richard Deeming10-Oct-14 7:35
mveRichard Deeming10-Oct-14 7:35 
GeneralRe: Help with regex HTML form validation Pin
robwm110-Oct-14 7:39
robwm110-Oct-14 7:39 
GeneralRe: Help with regex HTML form validation Pin
Richard Deeming10-Oct-14 7:47
mveRichard Deeming10-Oct-14 7:47 
QuestionRegular expression date Pin
Member 836446830-May-14 7:27
Member 836446830-May-14 7:27 
QuestionRe: Regular expression date Pin
George Jonsson13-Sep-14 23:21
professionalGeorge Jonsson13-Sep-14 23:21 
AnswerRe: Regular expression date Pin
nagshead_obx9-Oct-14 7:10
nagshead_obx9-Oct-14 7:10 
QuestionRe: Regular expression date Pin
George Jonsson9-Oct-14 16:18
professionalGeorge Jonsson9-Oct-14 16:18 

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.