Notepad++ is the best text, CSS, jQuery, HTML and PHP editor available. I’ve tried all sorts of other editors such as Adobe Dreamweaver, Brackets etc. when scripting and developing WordPress Websites but, for my purposes, nothing beats Notepad++.
Today, when amending some HTML in Notepad++ to enter into MediaWiki I realised that I didn’t know how to use a wildcard character in a Notepad++ search and replace. Usually the wildcard is something like but this doesn’t work in Notepad++.
After much frustration and searching I eventually figured out that the wildcard is .
An an example, lets say we have the content
<center>This is some text</center>
. To remove this string with the HTML we’d enter into the Notepad++ Find what field
and make sure that the Replace with field is empty. Just click Replace or Replace All and all strings that start with
will be replaced with an empty space.
Note: If the above doesn’t work or you want more advanced search options then click CTRL+R for a far better search and replace.
Get solutions from others. Click Notify me of follow-up comments via e-mail when you leave a comment below.