Hi
I need a C# regex for a positive floatin no with maximum 2 digits for decimals. Also the regex should check for letters and alphanumerical chars (not allow them) and not allow also the input value to be empty (0 characters).
Thanks
Hi I need a C# regex for a positive floatin no with maximum 2
Share
This will force it to have either a
+or nothing at the start, followed by at least 1 number, then optional (decimal followed by 1 or 2 numbers)For others, yes, I know of
\d,:digit:, using\., etc. I just prefer using [0-9] and [.], it makes them stand out easier for me.