in reply to regex negative lookahead behaviour
This specific case has been answered for you quite adequately, but I just wanted to point out that you could have figured this out by looking at exactly WHAT the regex was matching. If you'd written a test script to quote and output what was matched, you'd have seen that the space wasn't matched, which might have led you to the answer faster than waiting for the monks to reply.
|
|---|