{"record":{"id":"1a73e1e751a73392","repo":"sqlmapproject/sqlmap","slug":"option-regexp-is-incompatible-with-switch-n","errorCode":null,"errorMessage":"option '--regexp' is incompatible with switch '--null-connection'","messagePattern":"option '--regexp' is incompatible with switch '--null-connection'","errorType":"exception","errorClass":"SqlmapSyntaxException","httpStatus":null,"severity":"error","filePath":"lib/core/option.py","lineNumber":2910,"sourceCode":"\n    if conf.crawlDepth:\n        try:\n            xrange(conf.crawlDepth)\n        except OverflowError as ex:\n            errMsg = \"invalid value used for option '--crawl' ('%s')\" % getSafeExString(ex)\n            raise SqlmapSyntaxException(errMsg)\n\n    if conf.dumpAll and conf.search:\n        errMsg = \"switch '--dump-all' is incompatible with switch '--search'\"\n        raise SqlmapSyntaxException(errMsg)\n\n    if conf.string and conf.notString:\n        errMsg = \"option '--string' is incompatible with switch '--not-string'\"\n        raise SqlmapSyntaxException(errMsg)\n\n    if conf.regexp and conf.nullConnection:\n        errMsg = \"option '--regexp' is incompatible with switch '--null-connection'\"\n        raise SqlmapSyntaxException(errMsg)\n\n    if conf.regexp:\n        try:\n            re.compile(conf.regexp)\n        except Exception as ex:\n            errMsg = \"invalid regular expression '%s' ('%s')\" % (conf.regexp, getSafeExString(ex))\n            raise SqlmapSyntaxException(errMsg)\n\n    if conf.paramExclude:\n        if re.search(r\"\\A\\w+,\", conf.paramExclude):\n            conf.paramExclude = r\"\\A(%s)\\Z\" % ('|'.join(re.escape(_).strip() for _ in conf.paramExclude.split(',')))\n\n        try:\n            re.compile(conf.paramExclude)\n        except Exception as ex:\n            errMsg = \"invalid regular expression '%s' ('%s')\" % (conf.paramExclude, getSafeExString(ex))\n            raise SqlmapSyntaxException(errMsg)\n","sourceCodeStart":2892,"sourceCodeEnd":2928,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/core/option.py#L2892-L2928","documentation":"Error \"option '--regexp' is incompatible with switch '--null-connection'\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/core/option.py:2910 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}