Click here to Skip to main content
13,550,613 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life. Technical discussions are encouraged, but click here to ask your programming questions.

The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct, no programming questions and please don't post ads.
 
GeneralRe: -ve ^2 Pin
_Maxxx_5-Feb-14 22:14
professional_Maxxx_5-Feb-14 22:14 
GeneralOutrageous government intervention (US) Pin
{da7c68de-3931-43b9-9102-6dbe3972c5c3}5-Feb-14 10:55
member{da7c68de-3931-43b9-9102-6dbe3972c5c3}5-Feb-14 10:55 
GeneralRe: Outrageous government intervention (US) Pin
Richard Andrew x645-Feb-14 12:56
professionalRichard Andrew x645-Feb-14 12:56 
GeneralRe: Outrageous government intervention (US) Pin
AspDotNetDev5-Feb-14 19:06
protectorAspDotNetDev5-Feb-14 19:06 
GeneralRe: Outrageous government intervention (US) Pin
_Maxxx_5-Feb-14 19:50
professional_Maxxx_5-Feb-14 19:50 
GeneralRe: Outrageous government intervention (US) Pin
glennPattonWork5-Feb-14 23:38
professionalglennPattonWork5-Feb-14 23:38 
GeneralRe: Outrageous government intervention (US) Pin
jschell6-Feb-14 8:52
memberjschell6-Feb-14 8:52 
GeneralRegular Expression - Achievement unlocked Pin
Marco Bertschi5-Feb-14 9:35
professionalMarco Bertschi5-Feb-14 9:35 
I had the joy to take my first steps with Regular Expressions today (I have tried to avoid them, but I eventually got that they are absolutely inavoidable, especially when it comes to parsing complex strings).
So I present you my first RegEx:

([0-9]{4})-([1-9]|[1][0-2])-([0-2]?[0-9]|[3][0-1])[T]([0-1]?[0-9]|[2][0-3])[:]([0-5]?[0-9])[:]([0-5]?[0-9])?.?([0-9]{1,6})[Z]([+-][0-9][\.|,]?[0-9]?|[0-9]{2}?|[+-]?[0][1][0-2][\.]?[0-9]?|[0-9]{2}?)


Beautiful, isn't she? Blush | :O Blush | :O Blush | :O

And that's the string it will parse: 2014-2-5T21:36:14.315Z+1.5
Clean-up crew needed, grammar spill... - Nagy Vilmos

GeneralRe: Regular Expression - Achievement unlocked Pin
OriginalGriff5-Feb-14 10:12
protectorOriginalGriff5-Feb-14 10:12 
GeneralRe: Regular Expression - Achievement unlocked Pin
Marco Bertschi5-Feb-14 10:16
professionalMarco Bertschi5-Feb-14 10:16 
GeneralRe: Regular Expression - Achievement unlocked Pin
BillW335-Feb-14 10:26
professionalBillW335-Feb-14 10:26 
GeneralRe: Regular Expression - Achievement unlocked Pin
Mike Hankey5-Feb-14 10:56
memberMike Hankey5-Feb-14 10:56 
GeneralThank you. Thank you. Thank you. Pin
Rajesh R Subramanian5-Feb-14 21:05
professionalRajesh R Subramanian5-Feb-14 21:05 
GeneralRe: Thank you. Thank you. Thank you. Pin
OriginalGriff5-Feb-14 21:40
protectorOriginalGriff5-Feb-14 21:40 
GeneralRe: Regular Expression - Achievement unlocked Pin
Septimus Hedgehog5-Feb-14 21:25
memberSeptimus Hedgehog5-Feb-14 21:25 
QuestionRe: Regular Expression - Achievement unlocked Pin
Matthys Terblanche5-Feb-14 22:37
memberMatthys Terblanche5-Feb-14 22:37 
AnswerRe: Regular Expression - Achievement unlocked Pin
OriginalGriff5-Feb-14 22:54
protectorOriginalGriff5-Feb-14 22:54 
GeneralRe: Regular Expression - Achievement unlocked Pin
Matthys Terblanche5-Feb-14 22:59
memberMatthys Terblanche5-Feb-14 22:59 
GeneralRe: Regular Expression - Achievement unlocked Pin
OriginalGriff5-Feb-14 23:03
protectorOriginalGriff5-Feb-14 23:03 
GeneralRe: Regular Expression - Achievement unlocked Pin
Matthys Terblanche6-Feb-14 1:03
memberMatthys Terblanche6-Feb-14 1:03 
GeneralRe: Regular Expression - Achievement unlocked Pin
Chris Losinger5-Feb-14 10:30
memberChris Losinger5-Feb-14 10:30 
GeneralRe: Regular Expression - Achievement unlocked Pin
Marco Bertschi5-Feb-14 10:37
professionalMarco Bertschi5-Feb-14 10:37 
GeneralRe: Regular Expression - Achievement unlocked Pin
PIEBALDconsult5-Feb-14 10:59
memberPIEBALDconsult5-Feb-14 10:59 
QuestionRe: Regular Expression - Achievement unlocked Pin
TnTinMn5-Feb-14 12:23
memberTnTinMn5-Feb-14 12:23 
AnswerRe: Regular Expression - Achievement unlocked Pin
Marco Bertschi5-Feb-14 20:01
professionalMarco Bertschi5-Feb-14 20: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.


Advertise | Privacy |
Web02-2016 | 2.8.180515.1 | Last Updated 21 May 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid