Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Add char to non-numerical words only
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { var value = "hello 75 lövgärdet"; int num = 0; var words = value.Split(' ') .Select(w => (int.TryParse(w, out num) ? w : w+"~")); Console.WriteLine(string.Join(" ", words)); } } }
run
|
edit
|
history
|
help
0
D111
sdfgtrewqdsc sdzdxsd
DateTime With TimeZone to UTC DateTime
reverse array
SortedDictionary : Add と foreach
game 1.0.3
Namespaces multiple
Try-Catch-TaskRun
Classes
Plt-D v.0.9.3.1