POV-Ray : Newsgroups : povray.off-topic : Mini-languages : Re: Mini-languages Server Time
3 Sep 2024 23:26:44 EDT (-0400)
  Re: Mini-languages  
From: scott
Date: 10 Nov 2010 12:55:46
Message: <4cdadca2@news.povray.org>
>> (\+|-)[0-9]+(\.[0-9]+)?(E(\+|-)?[0-9]{1,3})?
>
>   do
>     option (char '+' <|> char '-')
>     many1 digit
>     option (char '.')
>     many1 digit
>     option (do char 'E'; option (char '+' <|> char '-'); many1 digit)

Hmm, now which one is more readable?


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.