I'm trying to extract a string that is found between [] brackets on multiple lines, but I can't seem to get it right. Any advice?
if ($file =~ m/\[(.*?)\]/m ) { my $inside = $1; print "$inside\n"; }
The $file looks something like this:
Something [ 'name', 'joe', 'bopeep' ]
In reply to Multiline Regex Issue by jaldama
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |