http://www.perlmonks.org?node_id=950778


in reply to How do I extract named variable names from regex string

I'm having trouble trying to imagine the range of possible content in the string against which you wish to use your regex. I don't see any consistent separator between the fields you want to capture, which tends to rule out use of a "repetitive pattern" of a character similar to what you've shown (and special attention to chessgui's catch).

Please post a few lines of (representative) sample data.