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

Regular Expressions

 
AnswerRe: Using back references to find data type naming standards violations Pin
George Jonsson17-Apr-16 19:13
professionalGeorge Jonsson17-Apr-16 19:13 
QuestionRe: Using back references to find data type naming standards violations Pin
Member 1244829919-Apr-16 6:54
Member 1244829919-Apr-16 6:54 
AnswerRe: Using back references to find data type naming standards violations Pin
George Jonsson19-Apr-16 18:52
professionalGeorge Jonsson19-Apr-16 18:52 
GeneralRe: Using back references to find data type naming standards violations Pin
Member 1244829923-Apr-16 4:25
Member 1244829923-Apr-16 4:25 
Questionnegation of an expression Pin
Vijjuuu.28-Feb-15 7:19
Vijjuuu.28-Feb-15 7:19 
AnswerRe: negation of an expression Pin
Richard Deeming2-Mar-15 2:52
mveRichard Deeming2-Mar-15 2:52 
AnswerRe: negation of an expression Pin
bulrush40026-May-16 0:57
bulrush40026-May-16 0:57 
QuestionHelp with regex HTML form validation Part 2 Pin
robwm110-Oct-14 10:18
robwm110-Oct-14 10:18 
Hi,

Now I need a pattern to detect last name possibilities. I think this pattern will be slightly more complicated. Names that I see in the database are like:

Jones
Jones-Smith
Jones Smith (no hyphen)
O'Leary
Van Allen (no hyphen)
Vander Ark (no hyphen)

I think that this pattern will work but I would like public opinion to make sure I am getting this right:

^[a-zA-Z\-\s']+$

Can you think of any last names where this will not work? In testing it seems to work out alright.

Thanks,
Rob
AnswerRe: Help with regex HTML form validation Part 2 Pin
Matt T Heffron10-Oct-14 11:48
professionalMatt T Heffron10-Oct-14 11:48 
GeneralRe: Help with regex HTML form validation Part 2 Pin
robwm110-Oct-14 12:11
robwm110-Oct-14 12:11 
AnswerRe: Help with regex HTML form validation Part 2 Pin
Matt T Heffron10-Oct-14 12:26
professionalMatt T Heffron10-Oct-14 12:26 
GeneralRe: Help with regex HTML form validation Part 2 Pin
robwm110-Oct-14 12:34
robwm110-Oct-14 12:34 
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 
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 

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.