Try this:
while( $line =~ /(\w+)=("[^"]+"|\S+)/g ) { print "$1: $2\n"; }
Warning: no guarantees if your string is not well-formed.
In reply to Re^3: split string using regex
by hdb
in thread split string using regex
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |