Hannes Naudé took advantage of a funky feature of MATLAB’s REGEXP in order to sneak a command by our security. Dynamic regular expressions allow you to execute MATLAB commands from within a regular expression, an unusual feature that’s been useful to me in the past when doing replacements. Embarrassingly, we weren’t even trying to block CLEAR because it didn’t matter in past contests. REGEXP and CLEAR are now blocked. No real damage to the contest was done and we’re still on-track to award a Midnight Madness prize tonight to the best-scoring entry submitted before midnight EST.
By Matthew Simoneau
18:31 UTC | Posted in Blackbox | Permalink |
You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.
It is fun to participate in the Matlab programming contest
Wrap code fragments inside <pre> tags, like this:
<pre class="code"> a = magic(3); sum(a) </pre>
If you have a "<" character in your code, either follow it with a space or replace it with "<" (including the semicolon).
These postings are the author's and don't necessarily represent the opinions of The MathWorks.
It is fun to participate in the Matlab programming contest