in reply to regex remove blank/whitespace until first occurrence of specific character "["
Have a look at the /m and /g switches (perlre): my @matches = $initialStr=~/^\s*\[.+?\]\s*(.+)$/mg;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regex remove blank/whitespace until first occurrence of specific character "["
by thanos1983 (Parson) on Mar 03, 2015 at 09:07 UTC |