remove unneeded variable; improve regex

additional comment (TODO) for #93: use ?action=new when using better API calls.