I want to split the string and want to get the specific text length.
Below is the string.
124-SYS-RLAKS-0306101135P-System Maintenance
And I want to get the string as.
124-SYS-RLAKS-0306101135P
Hi @nilesh.mahajan,
If this(-System Maintenance) is always same and never change then replace that with an empty value like this outvar= inputvar.Replace(“-System Maintenance”,string.Empty).ToString