Click here to Skip to main content
15,881,424 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
GeneralRe: Help wanted with regex format. Pin
ExcellentOrg6-Aug-13 19:07
ExcellentOrg6-Aug-13 19:07 
GeneralRe: Help wanted with regex format. Pin
OriginalGriff31-Jul-13 4:41
mveOriginalGriff31-Jul-13 4:41 
GeneralRe: Help wanted with regex format. Pin
Septimus Hedgehog31-Jul-13 5:18
Septimus Hedgehog31-Jul-13 5:18 
GeneralRe: Help wanted with regex format. Pin
Septimus Hedgehog31-Jul-13 20:17
Septimus Hedgehog31-Jul-13 20:17 
QuestionRegular Expression to allow combination of character with digits only Pin
pal8913-Feb-13 17:58
pal8913-Feb-13 17:58 
AnswerRe: Regular Expression to allow combination of character with digits only Pin
Sandeep Mewara13-Feb-13 18:55
mveSandeep Mewara13-Feb-13 18:55 
AnswerRe: Regular Expression to allow combination of character with digits only Pin
T Chandra Prakash28-Feb-13 19:08
T Chandra Prakash28-Feb-13 19:08 
AnswerRe: Regular Expression to allow combination of character with digits only Pin
OriginalGriff28-Feb-13 21:39
mveOriginalGriff28-Feb-13 21:39 
This is not a good regex task - it isn't strictly pattern matching, it's a counting job, which regex is pretty bad at.
While you can do it it would be horribly complex, and if you decided at a later date that you wanted to include special characters in there it would be a real PITA to maintain.

Instead, do it in code: Use two regexes - one to return all the digits, and one to return all the alpha characters. You then check that the length of both is greater than zero.
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.

AnswerRe: Regular Expression to allow combination of character with digits only Pin
Richard Deeming1-Mar-13 1:25
mveRichard Deeming1-Mar-13 1:25 
QuestionMy co-worker came up with a regex that validate dates... and it even validates leap years! Pin
Sentenryu7-Jan-13 5:54
Sentenryu7-Jan-13 5:54 
AnswerRe: My co-worker came up with a regex that validate dates... and it even validates leap years! Pin
Thomas Daniels12-Jan-13 22:05
mentorThomas Daniels12-Jan-13 22:05 
GeneralRe: My co-worker came up with a regex that validate dates... and it even validates leap years! Pin
Sentenryu13-Jan-13 22:00
Sentenryu13-Jan-13 22:00 
GeneralRe: My co-worker came up with a regex that validate dates... and it even validates leap years! Pin
Thomas Daniels14-Jan-13 5:48
mentorThomas Daniels14-Jan-13 5:48 
GeneralRe: My co-worker came up with a regex that validate dates... and it even validates leap years! Pin
pt140127-Jan-13 19:29
pt140127-Jan-13 19:29 
GeneralRe: My co-worker came up with a regex that validate dates... and it even validates leap years! Pin
Thomas Daniels28-Jan-13 6:10
mentorThomas Daniels28-Jan-13 6:10 
GeneralRe: My co-worker came up with a regex that validate dates... and it even validates leap years! Pin
Lutosław4-Jun-13 13:14
Lutosław4-Jun-13 13:14 
QuestionAdvanced practice on regexp Pin
msoutopico19-Dec-12 8:06
msoutopico19-Dec-12 8:06 
AnswerRe: Advanced practice on regexp Pin
Peter_in_278019-Dec-12 12:04
professionalPeter_in_278019-Dec-12 12:04 
GeneralRe: Advanced practice on regexp Pin
msoutopico19-Dec-12 12:54
msoutopico19-Dec-12 12:54 
Questionhow to make a white space regex Pin
shaikh-adil17-Nov-12 23:34
shaikh-adil17-Nov-12 23:34 
AnswerRe: how to make a white space regex Pin
Peter_in_278018-Nov-12 10:47
professionalPeter_in_278018-Nov-12 10:47 
GeneralRe: how to make a white space regex Pin
shaikh-adil18-Nov-12 17:39
shaikh-adil18-Nov-12 17:39 
GeneralRe: how to make a white space regex Pin
Jochen Arndt18-Nov-12 21:32
professionalJochen Arndt18-Nov-12 21:32 
Questionpart of string before a match Pin
PozzaVecia29-Oct-12 10:21
PozzaVecia29-Oct-12 10:21 
AnswerRe: part of string before a match Pin
Richard Deeming29-Oct-12 10:37
mveRichard Deeming29-Oct-12 10:37 

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.