i'm new in delphi, i want to replace some string in Delphi

i'm new in delphi, i want to replace some string in Delphi
characters I wanna replace are tab, newline, carriage return, and space into null

if in c sharp was like this
replacement = Regex.Replace(g, @"\t|\n|\r|\s", "");

is there any something like this in Delphi?

Comments

  1. +Alexander Elagin Well, you can do it either way. Yes TRegEx is a record. Yes it has static methods. It also has instance methods, and state. These are necessary if you want to re-use a compiled regex.

    ReplyDelete
  2. thx a lot for the answer

    David Heffernan Alexander Elagin Martin Wienold

    ReplyDelete
  3. Cakar Kucing
    And welcome to Delphi!

    ReplyDelete

Post a Comment