blucalm

Numeric Form Regex

Aug 28th, 2012
647
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. #==============================================================================
  2. # ** NumericForm
  3. #------------------------------------------------------------------------------
  4. # The regular expression that represents a number in base 10
  5. #==============================================================================
  6. $imported = {} unless $imported
  7. $imported["Numeric Form Regex"] = true
  8.  
  9. module NumericForm
  10. Regex = /\A(?:-|)\d+(?:\.|)(?:\d+|)\Z/
  11. end
  12. #==============================================================================
  13. # -------------------------------End of File-----------------------------------
  14. #==============================================================================
Advertisement
Add Comment
Please, Sign In to add comment