Click here to Skip to main content
15,891,951 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: -ve ^2 Pin
_Maxxx_5-Feb-14 22:14
professional_Maxxx_5-Feb-14 22:14 
GeneralOutrageous government intervention (US) Pin
Ernst Iliov Stavro Blofeld5-Feb-14 10:55
Ernst Iliov Stavro Blofeld5-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
glennPattonWork35-Feb-14 23:38
professionalglennPattonWork35-Feb-14 23:38 
GeneralRe: Outrageous government intervention (US) Pin
jschell6-Feb-14 8:52
jschell6-Feb-14 8:52 
GeneralRegular Expression - Achievement unlocked Pin
Marco Bertschi5-Feb-14 9:35
protectorMarco 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
mveOriginalGriff5-Feb-14 10:12 
GeneralRe: Regular Expression - Achievement unlocked Pin
Marco Bertschi5-Feb-14 10:16
protectorMarco 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
mveMike 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
mveOriginalGriff5-Feb-14 21:40 
GeneralRe: Regular Expression - Achievement unlocked Pin
Septimus Hedgehog5-Feb-14 21:25
Septimus Hedgehog5-Feb-14 21:25 
QuestionRe: Regular Expression - Achievement unlocked Pin
Matthys Terblanche5-Feb-14 22:37
Matthys Terblanche5-Feb-14 22:37 
AnswerRe: Regular Expression - Achievement unlocked Pin
OriginalGriff5-Feb-14 22:54
mveOriginalGriff5-Feb-14 22:54 
GeneralRe: Regular Expression - Achievement unlocked Pin
Matthys Terblanche5-Feb-14 22:59
Matthys Terblanche5-Feb-14 22:59 
GeneralRe: Regular Expression - Achievement unlocked Pin
OriginalGriff5-Feb-14 23:03
mveOriginalGriff5-Feb-14 23:03 
GeneralRe: Regular Expression - Achievement unlocked Pin
Matthys Terblanche6-Feb-14 1:03
Matthys Terblanche6-Feb-14 1:03 
GeneralRe: Regular Expression - Achievement unlocked Pin
Chris Losinger5-Feb-14 10:30
professionalChris Losinger5-Feb-14 10:30 
GeneralRe: Regular Expression - Achievement unlocked Pin
Marco Bertschi5-Feb-14 10:37
protectorMarco Bertschi5-Feb-14 10:37 
GeneralRe: Regular Expression - Achievement unlocked Pin
PIEBALDconsult5-Feb-14 10:59
mvePIEBALDconsult5-Feb-14 10:59 
QuestionRe: Regular Expression - Achievement unlocked Pin
TnTinMn5-Feb-14 12:23
TnTinMn5-Feb-14 12:23 
AnswerRe: Regular Expression - Achievement unlocked Pin
Marco Bertschi5-Feb-14 20:01
protectorMarco 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.