← Back to team overview

openlp-core team mailing list archive

Re: [Merge] lp:~phill-ridout/openlp/bug952533 into lp:openlp

 

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.


References