weblion -11 Newbie Poster Banned

in html java script

var string = "anystring0001enabled";
                    alert(string.replace(/\D/g, ""));

in c#

string[] numbers = Regex.Split("anystring0001enabled", @"\D+");

            foreach (string value in numbers)
            {
                if (!string.IsNullOrEmpty(value))
                {
                    int i = int.Parse(value);
                    
                }
            }
happygeek commented: sigh -3
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.