+ Reply to Thread
Results 1 to 2 of 2

Thread: Replace X0020 by space

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    16

    Replace X0020 by space

    I have bulk of records and some of them has X0020 instead of space , for example :
    Code:
    HiX0020MyX0020NameX0020IsX0020Jack
    And so on.....
    So i tried :
    Code:
    Record = Regex.Replace(Record, @"[\x20\x27\x2C\.]", "");
    But it didn`t work.
    Any idea what am i making wrong ?

  2. #2
    You can use the string replace instead :
    Code:
    @"my\x0020bar".Replace(@"\x0020", " ")

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts