new System.Text.RegularExpressions.Regex(@"^-?\d+(\.\d{2})?$", System.Text.RegularExpressions.RegexOptions.None);>Hi,
Shared expr As New _ >System.Text.RegularExpressions.Regex("^-?d+(.d{2})?$", _ >System.Text.RegularExpressions.RegexOptions.None) > >Public Function ExpandPrice(ByVal Price As Double, Optional ByVal pSeparator As String = ".") As String > > Dim pPrice As String > pPrice = FORMAT(Price, "##############.00") > > Dim temp As New System.Text.StringBuilder() > If Not expr.IsMatch(pPrice) Then > ' temp.Append(pPrice) or whatever you want to do here > temp.Append("we got here") > Else>