c#

String Starts with Number

A
Desh-Duniya Team Author
| Published May 09, 2019
public static bool StringStartswithNumber(string str)
        {
            Regex r = new Regex(@"^[0-9]");
            str = str.Trim();
            Match m = r.Match(str);
            return m.Success;
        }

Discussion (0)

Please sign in to participate in the discussion.
No comments yet. Be the first to join the conversation!