Re: Bug in Safari Javascript?



On Jul 10, 8:17 pm, RobG <r...@xxxxxxxxxxxx> wrote:
On Jul 11, 12:22 pm, ron.h.h...@xxxxxxxxx wrote:



On Jul 10, 8:32 am, RobG <r...@xxxxxxxxxxxx> wrote:

Zwerfkat wrote:
<..>
If what you are after is a non-greedy version of a repeating pattern, shift the ? outside the
parenthesis and use:

/(Hello[^A]*)?\s*$/

This is not what I am after. Moreover, the result will be "Hello world " including the space at the
end and that's not what I had in mind.

Did you test that? I did. Neither Firefox, Safari or Opera include any
spaces after world - the ? is immediately before \s which seems to be
what you wanted. I haven't tested IE.

You may want to try your tests again.

I can do them a thousand times, but computers being what they are,
given the same input and processing instructions they keep giving the
same result. :-)

Even so, sometimes mistakes are made in reading test results,
especially when spaces are involved. But I see through your further
explanation, the problem was ... they weren't. ;-)

--
../rh

.



Relevant Pages

  • Re: Bug in Safari Javascript?
    ... parenthesis and use: ... end and that's not what I had in mind. ... Even so, sometimes mistakes are made in reading test results, ... explanation, the problem was ... ...
    (comp.lang.javascript)
  • Re: empty feeling
    ... that I have that freedom. ... understanding of the human mind, by a person with respect to another. ... reason psychology can never be "objective" enough to be a science ... that the theoretical explanation of the effect we call gravity is badly ...
    (uk.people.support.depression)
  • Re: Does violating the laws of physics require intelligence?
    ... phenomenology of the mind. ... It is always possible to claim that whatever explanation one has is ... This is an error akin to mistaking the concept that "The law of gravity ... the inverse square law is *not* sufficient to explain gravity. ...
    (talk.origins)
  • Re: Comparing Creationism against Darwinism
    ... devised and implemented by Divine Mind and power. ... That's an unsupported claim. ... Two round earth facts followed by an explanation. ... willing to give it a try: unguided material processes do indeed exist ...
    (talk.origins)
  • Re: Does violating the laws of physics require intelligence?
    ... evidence that the brain is _necessary_ for the mind. ... provide a sufficient explanation for the mind. ... the phenomena for gravity. ... phenomena, and yet we're supposed to assume one is sufficient to cause ...
    (talk.origins)