Regular Expression questions

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Derrick

    Regular Expression questions

    Hi

    I am new to using regular expressions in VB.NET, and need a bit of help.

    I am trying to parse a string that looks like this:
    ~datastart some variable numbers, characters and spaces of unknown length~
    to get this
    ~datastart~

    I tried this:
    strWorkingData = Regex.Replace(s trWorkingData, "~datastart *~",
    "~datastart ~")
    but it returned the starting value

    Any help would be appreciated (including any good resources on how to use
    regular expressions)

    Thanks for the help

    Derrick


Working...