POV-Ray : Newsgroups : povray.off-topic : An interesting problem : Re: An interesting problem Server Time
28 Jul 2024 18:16:44 EDT (-0400)
  Re: An interesting problem  
From: Warp
Date: 24 Apr 2013 17:23:14
Message: <51784d41@news.povray.org>
Orchid Win7 v1 <voi### [at] devnull> wrote:
> I wasn't sure whether you could actually build such a state machine for 
> *several* different regular expressions simultaneously. I'm not sure how 
> you'd go about doing that...

Any regular expressions can be joined with the | operator (after which
you get a regular expression that matches either one of those.) It's
a simple "or" operator.

I don't know how much optimization goes into building the state machine
from the RE, though.

-- 
                                                          - Warp


Post a reply to this message

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