POV-Ray : Newsgroups : povray.off-topic : RegEx help : Re: RegEx help Server Time
4 Sep 2024 05:20:14 EDT (-0400)
  Re: RegEx help  
From: Darren New
Date: 9 May 2010 14:43:30
Message: <4be70252$1@news.povray.org>
Chambers wrote:
> Any tips as to what I'm doing wrong?

Firstly, which regexp engine are you using? They're all slightly different.

Second, if you want to search for a literal period, probably \. is better 
than [.].

Depending on your engine, you might need to escape the $ also.

In other words, the problem is not so much with your regular expression as 
it is with expression the right regular expression to the RE interpreter 
you're using. What you're searching for ought to work, so the problem is 
either (1) you have spaces between the period and end of line, or (2) you 
are not passing the string to the RE engine that ends with "end of line" 
match marker.

Try searching for
   ing[. ]+$
and see if you get matches with one or more spaces between the ing. and the EOL.

-- 
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.