I haven't had time to fully investigate the evilness of this pattern but it certainly looked interesting:
Pattern: ^(([^\\/:*?<>"|]*(?<![ ]))*~+)(\.[xsl]{3})$ Input String $d_ d}ddddddddddddFoo2.xsl.xsl