Remove string on specified character
Hi, how do I slice off a string on a specified character. For example, I have
To.Remove.This
. How do I omit both the dot character and the word after the dot symbol?1 Reply
https://learn.microsoft.com/en-us/dotnet/api/system.string.replace?view=net-7.0
https://learn.microsoft.com/en-us/dotnet/api/system.string.split?view=net-7.0
two ways to achieve this
String.Replace Method (System)
Returns a new string in which all occurrences of a specified Unicode character or String in the current string are replaced with another specified Unicode character or String.
String.Split Method (System)
Returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array.