Have a look at the /m and /g switches (perlre): my @matches = $initialStr=~/^\s*\[.+?\]\s*(.+)$/mg;
In reply to Re: regex remove blank/whitespace until first occurrence of specific character "["
by Anonymous Monk
in thread regex remove blank/whitespace until first occurrence of specific character "["
by thanos1983
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |