in reply to
matching comments
I am not worrying about comments inside the quotes,but what about nested comments?
For my test.txt I used :
blah blah blah blah blah /*
multi /* bla */
line
comment
*/
and the result was :
/*
multi /* bla */
Any idea on how to handle those so the result would be like
/*
multi /* bla */
line
comment
*/
Thanks, Eugene
Comment on
Re: matching comments
Replies are listed 'Best First'.
RE: Re: matching comments
by
btrott
(Parson)
on Apr 24, 2000 at 07:59 UTC
Matching nested anything is tough. Take a look at
Can I use Perl regular expressions to match balanced text?
.
[reply]
In Section
Seekers of Perl Wisdom