sub remove_comment($){my$s=@_[0];$s=~s/\/\*(.+?)(\*\/|$)//g;$s;}printremove_comment('AAA'),"\n";printremove_comment('AAA/*BBB*/'),"\n";printremove_comment('AAA/*BBB'),"\n";printremove_comment('AAA/*BBB*/CCC'),"\n";printremove_comment('AAA/*BBB/*CCC*/DDD*/EEE'),"\n";printremove_comment('AAA/a//*BB*B**/CCC'),"\n";
rubikitch
#542()
[
Perl
]
Rating0/0=0.00
Rating0/0=0.00-0+
[ reply ]