SRIKAR'S
Wednesday, July 29, 2020
Extract desired word from string using regex in c#
string s = "1234 hyy dsad sfsf foorer dfdfdsf dvdvds";
Regex regex = new Regex(@"\d+");
var data = regex.Match(s);
output :1234
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment