Extract parts of string with Regex

Try this plugin - it lets you define your own pattern and has worked well for me in various scenarios: New Plugin - Input Formatter