Use (?x) modifier, see documentation.
Your regex becomess:
'{(?x)beginning och insanely long command continuing on a second line}'
Use (?x) modifier, see documentation.
Your regex becomess:
'{(?x)beginning och insanely long command continuing on a second line}'