--str = "{foo {baz}{bar}"str = "{Während|see{Was\\_auch\\_immmer}}{17}"first, second = str:match('{(.*)}%s*{(.*)}')print (first, "---", second)
Standard input is empty
Während|see{Was\_auch\_immmer} --- 17
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!