View Single Post
Old 04-11-2022, 08:50 PM   #6
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,369
Karma: 20212733
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
That could be done with a saved search.

Find: [\<\!\-\-|\/\*]\s*(.*?)\s*[\-\-\>|\*\/]
Replace: \1

- highlight commented section, including tags
- hit saved search button

I’m pretty sure you can assign a shortcut key for the clip(s), maybe you can do the same for a saved search??

Also, I’m not sure you need to escape every character in the find - I’m writing this on my phone without testing - but you get the idea. If I’m wrong I guarantee someone will correct it!

Edit: added \s* to not capture any spaces to prevent adding space every time this method is used.

</CDO>

Last edited by Turtle91; 04-11-2022 at 09:00 PM.
Turtle91 is offline   Reply With Quote