[core] tokenizer: better regex for URLs and folders