floating point regexp
Aaron Patterson <aaron-nCDmOI4KsdrYeBQzxHgb1laTQe2KTcn/@public.gmane.org>
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, The regexp for base 10 floating point values listed on this page: http://yaml.org/type/float.html Says: [-+]?([0-9][0-9_]*)?\.[0-9.]*([eE][-+][0-9]+)? (base 10) This regexp allows any number of dots in a row to be a valid base 10 float (for example "." or ".." or "...."). Shouldn't this regexp at least be: [-+]?([0-9][0-9_]*)?\.[0-9]*([eE][-+][0-9]+)? (base 10) Or am I missing something? (I realize the above regexp would match "." as a valid float, but what are you going to do? ;-) ). Thanks for your time. -- Aaron Patterson http://tenderlovemaking.com/ ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov