Fix regular expressions in resource loader definitions