How to extract digits from string using regular expression c#.

Опубликовано: 13 Август 2026
на канале: IT Core Soft
146
2

My fiverr link: https://www.fiverr.com/hamzakhalid178
My Upwork Profile: https://www.upwork.com/freelancers/~0...

Whatsapp Number: +923338672398
contact me on [email protected] for custom software's.
Please share and like the video and subscribe the channel
If any question comment below

for supporting the channel
make a honeygain account by my referral link and make a passive income for me and you.

https://r.honeygain.me/HAMZA16262

code:

Regex _filternumber = new Regex(@"\d+");
public string getnumber(string number)
{
string s1 = "";
foreach(Match m in _filternumber.Matches(number))
{
if (!s1.Contains(m.Value))
{
s1=s1+m.Value+Environment.NewLine;
}
}
return s1;
}