|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |