You can use a negative lookbehind assertion if your regular expression engine supports it:
^[/\w\.-]+(?
If you don't have lookbehind assertions but you do have lookaheads then you can use that instead:
^(?!.*\.html$)[/\w\.-]+$
See it working online: rubular