diff --git a/src/Aardvark.Base.FSharp/Utilities/Interop/String.fs b/src/Aardvark.Base.FSharp/Utilities/Interop/String.fs index 6e7b1413..0ab294b1 100644 --- a/src/Aardvark.Base.FSharp/Utilities/Interop/String.fs +++ b/src/Aardvark.Base.FSharp/Utilities/Interop/String.fs @@ -111,4 +111,8 @@ module ``String Extensions`` = /// Removes all leading and trailing white-space characters from the string. let inline trim (str : string) = - str.Trim() \ No newline at end of file + str.Trim() + + /// Replaces all occurrences of the pattern with the replacement string. + let inline replace (pattern : string) (replacement : string) (str : string) = + str.Replace(pattern, replacement) \ No newline at end of file