Click here to Skip to main content
12,065,888 members (27,727 online)

Welcome to the Lounge

   

For lazing about and discussing anything in a software developer's life that takes your fancy except programming questions.

Technical discussions are encouraged, but click here to ask your programming question.

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 23:14
professional_Maxxx_5-Feb-14 23:14 
GeneralOutrageous government intervention (US) Pin
{da7c68de-3931-43b9-9102-6dbe3972c5c3}5-Feb-14 11:55
member{da7c68de-3931-43b9-9102-6dbe3972c5c3}5-Feb-14 11:55 
GeneralRe: Outrageous government intervention (US) Pin
Richard Andrew x645-Feb-14 13:56
professionalRichard Andrew x645-Feb-14 13:56 
GeneralRe: Outrageous government intervention (US) Pin
AspDotNetDev5-Feb-14 20:06
protectorAspDotNetDev5-Feb-14 20:06 
GeneralRe: Outrageous government intervention (US) Pin
_Maxxx_5-Feb-14 20:50
professional_Maxxx_5-Feb-14 20:50 
GeneralRe: Outrageous government intervention (US) Pin
glennPattonWork6-Feb-14 0:38
professionalglennPattonWork6-Feb-14 0:38 
GeneralRe: Outrageous government intervention (US) Pin
jschell6-Feb-14 9:52
memberjschell6-Feb-14 9:52 
GeneralRegular Expression - Achievement unlocked Pin
Marco Bertschi5-Feb-14 10:35
professionalMarco Bertschi5-Feb-14 10: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 11:12
protectorOriginalGriff5-Feb-14 11:12 
GeneralRe: Regular Expression - Achievement unlocked Pin
Marco Bertschi5-Feb-14 11:16
professionalMarco Bertschi5-Feb-14 11:16 
GeneralRe: Regular Expression - Achievement unlocked Pin
BillW335-Feb-14 11:26
professionalBillW335-Feb-14 11:26 
GeneralRe: Regular Expression - Achievement unlocked Pin
Mike Hankey5-Feb-14 11:56
memberMike Hankey5-Feb-14 11:56 
GeneralThank you. Thank you. Thank you. Pin
Rajesh R Subramanian5-Feb-14 22:05
professionalRajesh R Subramanian5-Feb-14 22:05 
GeneralRe: Thank you. Thank you. Thank you. Pin
OriginalGriff5-Feb-14 22:40
protectorOriginalGriff5-Feb-14 22:40 
GeneralRe: Regular Expression - Achievement unlocked Pin
Septimus Hedgehog5-Feb-14 22:25
memberSeptimus Hedgehog5-Feb-14 22:25 
QuestionRe: Regular Expression - Achievement unlocked Pin
Matthys Terblanche5-Feb-14 23:37
memberMatthys Terblanche5-Feb-14 23:37 
AnswerRe: Regular Expression - Achievement unlocked Pin
OriginalGriff5-Feb-14 23:54
protectorOriginalGriff5-Feb-14 23:54 
GeneralRe: Regular Expression - Achievement unlocked Pin
Matthys Terblanche5-Feb-14 23:59
memberMatthys Terblanche5-Feb-14 23:59 
GeneralRe: Regular Expression - Achievement unlocked Pin
OriginalGriff6-Feb-14 0:03
protectorOriginalGriff6-Feb-14 0:03 
GeneralRe: Regular Expression - Achievement unlocked Pin
Matthys Terblanche6-Feb-14 2:03
memberMatthys Terblanche6-Feb-14 2:03 
GeneralRe: Regular Expression - Achievement unlocked Pin
Chris Losinger5-Feb-14 11:30
memberChris Losinger5-Feb-14 11:30 
GeneralRe: Regular Expression - Achievement unlocked Pin
Marco Bertschi5-Feb-14 11:37
professionalMarco Bertschi5-Feb-14 11:37 
GeneralRe: Regular Expression - Achievement unlocked Pin
PIEBALDconsult5-Feb-14 11:59
memberPIEBALDconsult5-Feb-14 11:59 
QuestionRe: Regular Expression - Achievement unlocked Pin
TnTinMn5-Feb-14 13:23
memberTnTinMn5-Feb-14 13:23 
AnswerRe: Regular Expression - Achievement unlocked Pin
Marco Bertschi5-Feb-14 21:01
professionalMarco Bertschi5-Feb-14 21: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 | Mobile
Web04 | 2.8.160207.1 | Last Updated 7 Feb 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid