yangtse has asked for the wisdom of the Perl Monks concerning the following question:
I am going to remove [[ this is a test ]] from the $line? I am looking for how to remove the pattern [[.*]] from multiple lines my approach $line =~ s/\[\[[^\]]*\]\s*\]/ /msg; but it is not working. Can someone have any idea here? Thanks in advance!$line = "this is a test [[ this is a test ] ]";
Added code tags and [ entities - dvergin 2002-04-24
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: substition in multiple lines
by thelenm (Vicar) on Apr 24, 2002 at 17:36 UTC | |
|
Re: substition in multiple lines
by emilford (Friar) on Apr 24, 2002 at 17:44 UTC | |
|
Re: substition in multiple lines
by joealba (Hermit) on Apr 24, 2002 at 17:39 UTC |