How to remove spaces in string in plugin.iam using replace method but it is not working any help.
Ex:
string str="this is space";
Result:
thisisspace.
How to remove spaces in string in plugin.iam using replace method but it is not working any help.
Ex:
string str="this is space";
Result:
thisisspace.
Hi,
Try with this -
string str = "C Sharp"; str = str.Replace(" ", "");
Or you can also do using regular expression -
string str = "C Sharp"; str = Regex.Replace(str, @"\s", "");
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156