Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

Browse by Tags

All Tags » .net » replace
  • VB.NET RegEx.Replace replacing the matched characters + 1

    I have the follwing code in VB.NET: Dim strPhone As String = oRow("phone").ToString.ToLower  ' data is like 123-555-0000X81455  If Regex.IsMatch(strPhone.ToLower, "ext.|ext|ex.|ex|x.|x") Then  strPhone = Regex.Replace(strPhone.ToLower, "ext.|ext|ex.|ex|x.|x", "A") End IfIt ...
    Posted to Construction Advice (Forum) by unclebiguns on March 6, 2008
  • Can't figure it out...

    Hi there, I hope someone can help, cause I'm lost... First of all I am working with C# and I have a (legacy) Regex I need to adjust. Actually I am using Regex.Replace to match an expression in a string and Replace it. My current Regex.Replace looks like this: query = Regex.Replace(query, ...
    Posted to Construction Advice (Forum) by mischa78 on June 28, 2007