POV-Ray : Newsgroups : povray.off-topic : Mini-languages : Re: Mini-languages Server Time
3 Sep 2024 23:24:56 EDT (-0400)
  Re: Mini-languages  
From: Darren New
Date: 13 Nov 2010 11:17:18
Message: <4cdeba0e$1@news.povray.org>
Warp wrote:
> Darren New <dne### [at] sanrrcom> wrote:
>> http://swtch.com/~rsc/regexp/regexp1.html
> 
>> Or, in your language
>>     many (char 'a')
>>     many (char 'a')
>>     many (char 'a')
>>     char 'a'
>>     char 'a'
>>     char 'a'
> 
>   I think you are confusing "a?" with "a*" (the webpage in question uses
> the former).

It works either way. The point is to make the first thing (A* or A?) match 
what needs to be left behind to match the second thing (A). Then you have to 
backtrack to get a match.

-- 
Darren New, San Diego CA, USA (PST)
   Serving Suggestion:
     "Don't serve this any more. It's awful."


Post a reply to this message

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