Geany Text Editor Remove Hash Comments
Nov 12, 2012 · 1 minute readCategory: geany
I recently needed to quickly remove some commented lines from a .htaccess file using Geany (a really nice lightweight IDE or feature rich text editor depending on your point of view).
Geany has some powerful regex replace functionality in there but I found that it was overly aggressive so removed lines that had more than one hash and were in fact title sections that needed to stay intact.
The working formula was:
Search for:
0
And replace with:
\1
And of course tick the regex box.