Advertisement

06.06.2008 at 01:46AM PDT, ID: 23463022
[x]
Attachment Details

Regular Expression - How Can I match:  d+1h+1m+1s+1

Asked by donsingh2k in Regular Expressions, C# Programming Language

Tags:

Could anyone please help me with a Regular Expression pattern, I'm a complete beginner and finding it very difficult to get it right.

I have an input string of syntax: d+1h+1m+1s+1
The input string represents the increment of relative time to requeue a task, so the d+1 represents 1 day, h+1 represents 1 hour and so on.

I would like to use regular expressions to check that the input string is in the correct format. Just for your reference, I am usingRegular Expressions within C#.

ThanksStart Free Trial
[+][-]06.06.2008 at 01:50AM PDT, ID: 21727266

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.06.2008 at 01:59AM PDT, ID: 21727303

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Regular Expressions, C# Programming Language
Tags: Regular Expressions
Sign Up Now!
Solution Provided By: ozo
Participating Experts: 3
Solution Grade: B
 
 
[+][-]06.06.2008 at 03:09AM PDT, ID: 21727577

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.06.2008 at 03:57AM PDT, ID: 21727794

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628