POV-Ray : Newsgroups : povray.off-topic : RegEx help : Re: RegEx help Server Time
4 Sep 2024 05:19:02 EDT (-0400)
  Re: RegEx help  
From: Darren New
Date: 10 May 2010 01:06:27
Message: <4be79453@news.povray.org>
Chambers wrote:
> That's what I would have thought, but I found that \. didn't return any matches,
> whereas [.] did.  Probably a quirk of the version I was using.

Probably because you're using the shell, so it's eating the first \

Try \\. where you need a ., since the shell will take away one \ and grep 
will take away the other.

> Thanks, I turned in my lab report with what I thought should work, and noting
> that it didn't.  That was the only problem with it, so I doubt I'll lose too
> many points.

Good luck. Let us know what the answer is? :-)

You know, I bet if you're invoking it from the command line, the shell might 
be swallowing the $ also.  That's one of the things I hate about this sort 
of thing - quoting hell.

-- 
Darren New, San Diego CA, USA (PST)
    Ada - the programming language trying to avoid
    you literally shooting yourself in the foot.


Post a reply to this message

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