title: Regex: match everything but a specific pattern
body: <p>I need a regular expression able to match everything <strong>but</strong> a string starting with a specific pattern (specifically <code>index.php</code> and what follows, like <code>index.php?id=2342343</code>).</p>