1 2 3 4 | my $string = "var1=100 var2=90 var5=hello var3=\"a, b, c\" var7=test var3=hello"; my $regexp = qr/( (?:\w+=[\w\,]+) | (?:\w+=\"[^\"]*\") )/xg; my @matches = $string =~ /$regexp/; |
bXkgJHN0cmluZyA9ICJ2YXIxPTEwMCB2YXIyPTkwIHZhcjU9aGVsbG8gdmFyMz1cImEsIGIsIGNcIiB2YXI3PXRlc3QgdmFyMz1oZWxsbyI7CgpteSAkcmVnZXhwID0gcXIvKCAoPzpcdys9W1x3XCxdKykgfCAoPzpcdys9XCJbXlwiXSpcIikgKS94ZzsKbXkgQG1hdGNoZXMgPSAkc3RyaW5nID1+IC8kcmVnZXhwLzs=
-
upload with new input
-
result: Success time: 0.02s memory: 5300 kB returned value: 9
Bareword found where operator expected at prog.pl line 3, near "qr/( (?:\w+=[\w\,]+) | (?:\w+=\"[^\"]*\") )/xg" syntax error at prog.pl line 3, near "qr/( (?:\w+=[\w\,]+) | (?:\w+=\"[^\"]*\") )/xg" Execution of prog.pl aborted due to compilation errors.


