Click here to Skip to main content
15,896,269 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
AnswerRe: Regular expression for City name Pin
k50547-Feb-24 20:02
mvek50547-Feb-24 20:02 
Based on your description, it would seem that New York is not a valid name for either a person or a city. I'm pretty sure it is a city. So is Stoke-on-Trent. There's probably other names for both people and cities that don't fit your expected pattern.

Consider, is Regina a person or a city? I know people named Regina. I know of a city named Regina. How would you differentiate between the two?

I don't think that a regex is the right tool for this. I'm pretty sure both person and city names are far more complex than you've allowed for.
"A little song, a little dance, a little seltzer down your pants"
Chuckles the clown

AnswerRe: Regular expression for City name Pin
Pete O'Hanlon8-Feb-24 4:10
mvePete O'Hanlon8-Feb-24 4:10 
AnswerRe: Regular expression for City name Pin
jschell8-Feb-24 4:58
jschell8-Feb-24 4:58 
GeneralRe: Regular expression for City name Pin
Richard Deeming8-Feb-24 5:07
mveRichard Deeming8-Feb-24 5:07 
GeneralRe: Regular expression for City name Pin
jschell9-Feb-24 12:02
jschell9-Feb-24 12:02 
QuestionDoes anyone have experience with creating the regex rule for a fail2ban filter? Pin
Member 161948782-Feb-24 4:44
Member 161948782-Feb-24 4:44 
AnswerRe: Does anyone have experience with creating the regex rule for a fail2ban filter? Pin
jschell7-Feb-24 5:38
jschell7-Feb-24 5:38 
QuestionHelp for a regexp Pin
Member 1616830421-Dec-23 23:43
Member 1616830421-Dec-23 23:43 
AnswerRe: Help for a regexp Pin
Member 1616830422-Dec-23 2:53
Member 1616830422-Dec-23 2:53 
QuestionRegex: more than one identical character next to each other? Pin
Member 1615168129-Nov-23 7:07
Member 1615168129-Nov-23 7:07 
AnswerRe: Regex: more than one identical character next to each other? Pin
Richard Deeming29-Nov-23 22:28
mveRichard Deeming29-Nov-23 22:28 
QuestionHelp me regexp gurus please problem is matching files and copy Pin
Gin Mador11-Nov-23 15:27
Gin Mador11-Nov-23 15:27 
AnswerRe: Help me regexp gurus please problem is matching files and copy Pin
jschell30-Nov-23 6:17
jschell30-Nov-23 6:17 
Questionpattern replace with specific exception Pin
Member 1612263424-Oct-23 1:06
Member 1612263424-Oct-23 1:06 
AnswerRe: pattern replace with specific exception Pin
Member 1612263426-Oct-23 1:02
Member 1612263426-Oct-23 1:02 
AnswerRe: pattern replace with specific exception Pin
Justice Marc20-Nov-23 5:10
Justice Marc20-Nov-23 5:10 
QuestionReplacement of initial words Pin
Luca Smith12-Oct-23 0:47
Luca Smith12-Oct-23 0:47 
AnswerRe: Replacement of initial words Pin
OriginalGriff12-Oct-23 0:50
mveOriginalGriff12-Oct-23 0:50 
GeneralRe: Replacement of initial words Pin
Luca Smith12-Oct-23 0:54
Luca Smith12-Oct-23 0:54 
GeneralRe: Replacement of initial words Pin
OriginalGriff12-Oct-23 1:18
mveOriginalGriff12-Oct-23 1:18 
GeneralRe: Replacement of initial words Pin
Luca Smith12-Oct-23 1:40
Luca Smith12-Oct-23 1:40 
GeneralRe: Replacement of initial words Pin
Dave Kreskowiak12-Oct-23 3:02
mveDave Kreskowiak12-Oct-23 3:02 
AnswerRe: Replacement of initial words Pin
Richard Deeming12-Oct-23 1:45
mveRichard Deeming12-Oct-23 1:45 
GeneralRe: Replacement of initial words Pin
Luca Smith12-Oct-23 1:59
Luca Smith12-Oct-23 1:59 
GeneralRe: Replacement of initial words Pin
Dave Kreskowiak12-Oct-23 3:01
mveDave Kreskowiak12-Oct-23 3:01 

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.