When adding the config via OSGI configuration console (manually), add it as If you save that you'll notice it will be saved asWhich is the correct string for java's Paterrn#compileBasically, if you are adding config via config files, as you should, you should add it as: