Loading ...
Sorry, an error occurred while loading the content.

Re: [Clip] Re: Testing for Well Formed Numeric Field

Expand Messages
  • Don
    Seems to work I think ... ^ *( +|-)? *?([ d .]+)(?! )[^ d r n]*$
    Message 1 of 4 , Jan 4, 2013
    • 0 Attachment
      Seems to work I think ...
      ^ *(\+|-)? *?([\d\.]+)(?! )[^\d\r\n]*$

      On 1/3/2013 6:03 PM, joy8388608 wrote:
      > For example these would all be well formed, valid fields:
      >> |<-test->|
      >> + 123
      >> +123
      >> - 123
      >> + 3
      >> + 356456 [next line is at EOF]
      >> + 3
      >>
      >> And these would all be ill-formed, invalid fields:
      >>
      >> |<-test->|
      >> -+ 123 [multiple operators]
      >> 2+23 [embedded operator]
      >> - 1 23 [embedded white space]
      >> + aa 3 [non-digit character]
      >> 2 [trailing white space] [next line is at EOF]
      >> a+ 3
      >>
    Your message has been successfully submitted and would be delivered to recipients shortly.