Thursday, 14 December 2017

Get Only integer part From string in C# using Regular Expression

using System.Text.RegularExpressions;

string tabno = Regex.Replace(hfActiveTabCT.Value.Trim(), @"[^0-9]+", "");

No comments:

Post a Comment

React Hooks - custom Hook

  v CustomHook Ø React allows us to create our own hook which is known as custom hook. Example – 1 localStorage Demo Step-1 Create ...