in reply to Extracting C Style Comments Revised (JavaScript)
Just do that and add# First, we'll list things we want # to match, but not throw away
after the round bracket ("("). This could work for the above problem. But you cannot make it perfect without further code parsing, e.g. these will still go wrong(?:/[^\r\n\*\/]+/) # Match RegExp |
.replace(/\//, "") abc/100 // comment
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Extracting C Style Comments Revised (JavaScript)
by Incognito (Pilgrim) on Oct 24, 2001 at 00:36 UTC | |
by Tetramin (Sexton) on Oct 24, 2001 at 01:32 UTC | |
by Incognito (Pilgrim) on Oct 24, 2001 at 03:35 UTC |