Regular expressions: Difference between revisions

m
→‎{{header|Sidef}}: modified the code to work with the latest version of Sidef
m (→‎{{header|JavaScript}}: Correcting the comment to be technically correct)
m (→‎{{header|Sidef}}: modified the code to work with the latest version of Sidef)
Line 1,921:
EOF
 
while (strvar m =~ str=~/(\w+):(\S+)/g) {
say "#{$1m[0]} -> #{$2m[1]}";
}</lang>
 
2,747

edits