Click here to Skip to main content
15,891,513 members
Home / Discussions / C#
   

C#

 
GeneralRe: Viewing the data enterd in the SQL Server Database for a specifed Time frame. Pin
Mohan Subramani7-Feb-14 2:32
Mohan Subramani7-Feb-14 2:32 
GeneralRe: Viewing the data enterd in the SQL Server Database for a specifed Time frame. Pin
OriginalGriff7-Feb-14 2:42
mveOriginalGriff7-Feb-14 2:42 
GeneralRe: Viewing the data enterd in the SQL Server Database for a specifed Time frame. Pin
Mohan Subramani7-Feb-14 2:58
Mohan Subramani7-Feb-14 2:58 
GeneralRe: Viewing the data enterd in the SQL Server Database for a specifed Time frame. Pin
OriginalGriff7-Feb-14 3:23
mveOriginalGriff7-Feb-14 3:23 
AnswerRe: Viewing the data enterd in the SQL Server Database for a specifed Time frame. Pin
KeyStrokes7-Feb-14 2:21
KeyStrokes7-Feb-14 2:21 
QuestionHow to run Import-PSSessions (powershell command) from .C# program Pin
Eviatar Gerzi6-Feb-14 7:51
Eviatar Gerzi6-Feb-14 7:51 
AnswerRe: How to run Import-PSSessions (powershell command) from .C# program Pin
Eviatar Gerzi11-Feb-14 8:44
Eviatar Gerzi11-Feb-14 8:44 
QuestionRegEx problem #2 [solved] Pin
Marco Bertschi6-Feb-14 2:32
protectorMarco Bertschi6-Feb-14 2:32 
I am slowly getting tired of RegExes.

RegEx "([\d]{4})-(0?[1-9]|[1][0-2])-([0-2]?[\d]|[3][0-1])[T]?([0-1]?[\d]|[2][0-3])[:]([0-5]?[\d])[:]([0-5]?[\d])\.?([\d]{0,6})?[[Z]|[+-]([\d]|[0][1][0-2][\.]?[\d]?|[\d]{2}?)]?" parses the strings timestamp1, timestamp2 correctly, but not timestamp3:

C#
string stringTimestamp1 = "2014-02-01T14:12:03Z+1";
string stringTimestamp2 = "2014-02-01T14:12:33.2342Z1";
string stringTimestamp3 = "2014-02-01T14:12:33.2342+1";


Undoubtly, the error lies with the "+1" at the end (the Z is desperately left out) and causing the RegEx to fail. It doesn't match.
Why should it? From my POV it should because of [Z]|[+-] (which means either "Z or + or -", doesn't it?).

[Solved, thanks to the help of the resident superbrain, OriginalGriff]
Clean-up crew needed, grammar spill... - Nagy Vilmos


modified 6-Feb-14 10:26am.

AnswerRe: RegEx problem #2 Pin
OriginalGriff6-Feb-14 2:54
mveOriginalGriff6-Feb-14 2:54 
GeneralRe: RegEx problem #2 Pin
Marco Bertschi6-Feb-14 3:00
protectorMarco Bertschi6-Feb-14 3:00 
GeneralRe: RegEx problem #2 Pin
OriginalGriff6-Feb-14 3:11
mveOriginalGriff6-Feb-14 3:11 
GeneralRe: RegEx problem #2 Pin
Marco Bertschi6-Feb-14 3:13
protectorMarco Bertschi6-Feb-14 3:13 
GeneralRe: RegEx problem #2 Pin
Ravi Bhavnani6-Feb-14 6:54
professionalRavi Bhavnani6-Feb-14 6:54 
GeneralRe: RegEx problem #2 Pin
Marco Bertschi6-Feb-14 8:59
protectorMarco Bertschi6-Feb-14 8:59 
AnswerRe: RegEx problem #2 Pin
Kornfeld Eliyahu Peter6-Feb-14 3:19
professionalKornfeld Eliyahu Peter6-Feb-14 3:19 
GeneralRe: RegEx problem #2 Pin
Marco Bertschi6-Feb-14 3:28
protectorMarco Bertschi6-Feb-14 3:28 
AnswerMessage Closed Pin
6-Feb-14 3:26
professionalPeter Leow6-Feb-14 3:26 
GeneralRe: RegEx problem #2 Pin
Marco Bertschi6-Feb-14 3:28
protectorMarco Bertschi6-Feb-14 3:28 
AnswerRe: RegEx problem #2 [solved] Pin
Nicholas Marty6-Feb-14 4:01
professionalNicholas Marty6-Feb-14 4:01 
GeneralRe: RegEx problem #2 [solved] Pin
Marco Bertschi6-Feb-14 4:22
protectorMarco Bertschi6-Feb-14 4:22 
AnswerRe: RegEx problem #2 [solved] Pin
BillWoodruff6-Feb-14 4:16
professionalBillWoodruff6-Feb-14 4:16 
QuestionRequested registry access is not allowed. Pin
Jassim Rahma5-Feb-14 23:02
Jassim Rahma5-Feb-14 23:02 
AnswerRe: Requested registry access is not allowed. Pin
OriginalGriff5-Feb-14 23:11
mveOriginalGriff5-Feb-14 23:11 
GeneralRe: Requested registry access is not allowed. Pin
Jassim Rahma5-Feb-14 23:13
Jassim Rahma5-Feb-14 23:13 
GeneralRe: Requested registry access is not allowed. Pin
OriginalGriff5-Feb-14 23:20
mveOriginalGriff5-Feb-14 23:20 

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.