The r'' just prevents python string processing from handling \'s. It doesn't affect the regex. You still need to escape the special regex characters.
However I think your original string might have worked, since python appears to leave in \'s that don't precede a special python shortcut, but's it best to play safe. Since / isn't a special regex character, I think you instead need: r'[\\/:\*\?"<>\|\+\[\]%]' -- https://code.launchpad.net/~phill-ridout/openlp/bug952533/+merge/98928 Your team OpenLP Core is subscribed to branch lp:openlp. _______________________________________________ Mailing list: https://launchpad.net/~openlp-core Post to : openlp-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~openlp-core More help : https://help.launchpad.net/ListHelp