using System.Text.RegularExpressions;
public static void Main()
Console.WriteLine("Hello World");
string text = "$This $is some text ";
var splits = Regex.Split(text, @"(?=\s+)");
foreach (string item in splits){
if (item.StartsWith("$")){
Console.WriteLine(splits.Length);