Hi I have code comments in a file as shown in below format.
/* ---------
sdl;f jkdf;kl gkdsf g
df df gfdg dfg fd
g fdgdfg * cfv df gd
*/
I need help in creating regex to remove everything in between /* */ including /* */
I tried
/\*.*$\n
But after this I am unable to rpoceed. Any help is appreciated.
Need help
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
Unfortunately, TextPad's aged regular expression engine is incapable of matching text containing an arbitrary number of newlines.
But you can do it with WildEdit (http://www.textpad.com/products/wildedit/), which uses a far more powerful regular expression engine:
But you can do it with WildEdit (http://www.textpad.com/products/wildedit/), which uses a far more powerful regular expression engine:
Find what: /\*.*\*/
Replace with: [nothing]
[X] Regular expression
Options
[ ] '.' does not match a newline character [i.e., not selected]