Hello.

I am Paul Kinlan.

A Developer Advocate for Chrome and the Open Web at Google.

I love the web. The web should allow anyone to access any experience that they need without the need for native install or content walled garden.

C# Query from Google

Paul Kinlan

This post addresses the C# problem of checking if a string contains a number. Two approaches are suggested: using the Convert class with specific data types like Convert.ToInt16, Convert.ToInt32, Convert.ToFloat, etc., and using regular expressions like ^[0-9]+$ or ^[\d]+$ for whole number strings. The post aims to help C# programmers effectively perform this type of string validation.

Read More

RE: Regex 101 Exercise S2 - Verify a string is a hex number

Paul Kinlan

This blog post discusses a regex exercise to verify if a string is a hexadecimal number. The proposed solution is ^[A-Fa-f0-9]*$, which matches any combination of hexadecimal digits (0-9 and a-f, case-insensitive). The author acknowledges that this regex allows starting a number with 0, which might not be desirable.

Read More