POV-Ray : Newsgroups : povray.off-topic : Mini-languages : Re: Mini-languages Server Time
4 Sep 2024 01:13:48 EDT (-0400)
  Re: Mini-languages  
From: nemesis
Date: 10 Nov 2010 15:53:32
Message: <4cdb064c$1@news.povray.org>
Invisible escreveu:
>>    Nice straw man.
> 
> Wasn't his problem that he didn't have a brain?
> 
>> (And "foo*bar" still doesn't mean what you think it means
>> as a regex.)
> 
> So, what, it means
> 
>   string "fo"
>   many (char 'o')
>   string "bar"
> 
> Or am I reading this wrong?

* means 0 or more of the previous pattern, in this case, letter 'o'.
+ means 1 or more.

"fobar" is accepted.  The correct pattern should be foo+bar or foo.*bar.

-- 
a game sig: http://tinyurl.com/d3rxz9


Post a reply to this message

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