Click here to Skip to main content
15,393,622 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
QuestionPattern Check Match Pin
Member 1567083112-Jun-22 4:17
MemberMember 1567083112-Jun-22 4:17 
AnswerRe: Pattern Check Match Pin
Peter_in_278012-Jun-22 5:05
professionalPeter_in_278012-Jun-22 5:05 
GeneralRe: Pattern Check Match Pin
Member 1567083112-Jun-22 6:22
MemberMember 1567083112-Jun-22 6:22 
AnswerRe: Pattern Check Match Pin
OriginalGriff12-Jun-22 6:23
mveOriginalGriff12-Jun-22 6:23 
GeneralRe: Pattern Check Match Pin
Member 1567083112-Jun-22 7:38
MemberMember 1567083112-Jun-22 7:38 
GeneralRe: Pattern Check Match Pin
Member 1567083112-Jun-22 8:13
MemberMember 1567083112-Jun-22 8:13 
GeneralRe: Pattern Check Match Pin
Member 1567083112-Jun-22 7:32
MemberMember 1567083112-Jun-22 7:32 
GeneralRe: Pattern Check Match Pin
Member 1567083112-Jun-22 11:49
MemberMember 1567083112-Jun-22 11:49 
Peter, I am having better luck by adding two Dollar Signs $ at the end.
The last Test below here is the only problem now.

I want J.j1 to be true too.

Here are the tests:
PS C:\Users\gmsab> "j.jo1" -match '[A-Za-z]'+'[\.]' + '[A-Za-z]+[A-Za-z0-9]$?[0-9$]$'
True

PS C:\Users\gmsab> "joe.jones11" -match '[A-Za-z]'+'[\.]' + '[A-Za-z]+[A-Za-z0-9]$?[0-9$]$'
True

PS C:\Users\gmsab> "j.jones11" -match '[A-Za-z]'+'[\.]' + '[A-Za-z]+[A-Za-z0-9]$?[0-9$]$'
True

PS C:\Users\gmsab> "j.jones1" -match '[A-Za-z]'+'[\.]' + '[A-Za-z]+[A-Za-z0-9]$?[0-9$]$'
True

PS C:\Users\gmsab> "j.jones" -match '[A-Za-z]'+'[\.]' + '[A-Za-z]+[A-Za-z0-9]$?[0-9$]$'
False

PS C:\Users\gmsab> "j.jones221" -match '[A-Za-z]'+'[\.]' + '[A-Za-z]+[A-Za-z0-9]$?[0-9$]$'
False

PS C:\Users\gmsab> "j.j21" -match '[A-Za-z]'+'[\.]' + '[A-Za-z]+[A-Za-z0-9]$?[0-9$]$'
True

PS C:\Users\gmsab> "j.j1" -match '[A-Za-z]'+'[\.]' + '[A-Za-z]+[A-Za-z0-9]$?[0-9$]$'
False
AnswerRe: Pattern Check Match Pin
Peter_in_278012-Jun-22 12:36
professionalPeter_in_278012-Jun-22 12:36 
GeneralRe: Pattern Check Match Pin
Member 1567083112-Jun-22 13:46
MemberMember 1567083112-Jun-22 13:46 
GeneralRe: Pattern Check Match Pin
Peter_in_278012-Jun-22 15:42
professionalPeter_in_278012-Jun-22 15:42 
QuestionAdresse erfassen mittels RegEx Pin
Member 156568991-Jun-22 3:26
MemberMember 156568991-Jun-22 3:26 
AnswerRe: Adresse erfassen mittels RegEx Pin
OriginalGriff1-Jun-22 1:53
mveOriginalGriff1-Jun-22 1:53 
GeneralRe: Adresse erfassen mittels RegEx Pin
Member 156568991-Jun-22 11:39
MemberMember 156568991-Jun-22 11:39 
GeneralRe: Adresse erfassen mittels RegEx Pin
OriginalGriff1-Jun-22 18:59
mveOriginalGriff1-Jun-22 18:59 
AnswerRe: Adresse erfassen mittels RegEx Pin
Richard MacCutchan1-Jun-22 22:01
mveRichard MacCutchan1-Jun-22 22:01 
GeneralRe: Adresse erfassen mittels RegEx Pin
Member 156568992-Jun-22 10:20
MemberMember 156568992-Jun-22 10:20 
Questionget parent LDAP DN - regex Pin
nExoR LU13-May-22 5:12
MembernExoR LU13-May-22 5:12 
AnswerRe: get parent LDAP DN - regex Pin
Richard Deeming15-May-22 21:40
mveRichard Deeming15-May-22 21:40 
GeneralRe: get parent LDAP DN - regex Pin
nExoR LU15-May-22 21:47
MembernExoR LU15-May-22 21:47 
QuestionRegular Expressions RegEx - Wildcards for route patterns Pin
Member 1563258311-May-22 6:05
MemberMember 1563258311-May-22 6:05 
QuestionDoubt in Regular Expression Pin
Member 156250644-May-22 20:09
MemberMember 156250644-May-22 20:09 
AnswerRe: Doubt in Regular Expression Pin
Richard Deeming4-May-22 21:17
mveRichard Deeming4-May-22 21:17 
QuestionRegex Lazy Match Zero or More Times (*?) Pin
Member 155940887-Apr-22 2:52
MemberMember 155940887-Apr-22 2:52 
AnswerRe: Regex Lazy Match Zero or More Times (*?) Pin
k50547-Apr-22 4:17
mvek50547-Apr-22 4: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.