I was told to add some text to an existing paragraph on a webpage. I opened the corresponding file and copied some of existing text and searched for it in the source code. Search found nothing and I was going nuts. It turned out in the source code some of the words had extra spaces between them and since this wasn’t displayed in the browser it screwed up searching for them in the code.
Anyone have tips to avoid this? For example is there a way to ignore white spaces, perhaps using regular expressions? It should be simple to add a sentence of text but I ended up using the design view in Dreamweaver.
Using regular expressions, you can search for multiple spaces
using +a +pattern +like +thisby putting a+following each space, which will instruct the search to look for one or more.