Re: Bug in Safari Javascript?
- From: ron.h.hall@xxxxxxxxx
- Date: Tue, 10 Jul 2007 20:53:01 -0700
On Jul 10, 8:17 pm, RobG <r...@xxxxxxxxxxxx> wrote:
On Jul 11, 12:22 pm, ron.h.h...@xxxxxxxxx wrote:Even so, sometimes mistakes are made in reading test results,
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. :-)
especially when spaces are involved. But I see through your further
explanation, the problem was ... they weren't. ;-)
--
../rh
.
- Follow-Ups:
- Re: Bug in Safari Javascript?
- From: RobG
- Re: Bug in Safari Javascript?
- References:
- Bug in Safari Javascript?
- From: Zwerfkat
- Re: Bug in Safari Javascript?
- From: RobG
- Re: Bug in Safari Javascript?
- From: Zwerfkat
- Re: Bug in Safari Javascript?
- From: RobG
- Re: Bug in Safari Javascript?
- From: ron . h . hall
- Re: Bug in Safari Javascript?
- From: RobG
- Bug in Safari Javascript?
- Prev by Date: Re: Rails Clones and Rhino vs SpiderMonkey
- Next by Date: Re: code problem: Cant get mouse over class to work.
- Previous by thread: Re: Bug in Safari Javascript?
- Next by thread: Re: Bug in Safari Javascript?
- Index(es):
Relevant Pages
|