Modify a Regular Expression

Posted on 2005-03-16
Medium Priority
Last Modified: 2010-08-05
I have the following regular expression:

[\d]{1,2}:[\d]{2} - [\d]{1,2}:[\d]{2} \((?<1>[^\)]*)\)

and from my understanding it will accept:

##:## - ##:## (## [text])

If my interpretation is wrong, please correct me (I am trying to learn RegExpressions).  Anyway, I want to modify it so that it will accept:

date format: mm/dd/yy

date  ##:## - date  ##:##(## [text])

Any RegEx experts about?

Question by:Ander5
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 27

Accepted Solution

planocz earned 500 total points
ID: 13559272
Here is a sample for you to play with......

Imports System.Text.RegularExpressions

   Function MDYToDMY(ByVal input As String) As String
        Return Regex.Replace(input, "\b(?<month>\d{1,2})/(?<day>\d{1,2})/(?<year>\d{2,4})\b", _
    End Function

Author Comment

ID: 13559310
Alright, thanks :D

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question