perl regex cheatsheet with examples in r