Sorry, I've not tested it before posting :)
BTW, you can make `.*` in the middle 'ungreedy' and add missing `$` to the end, and it will work as expected.