I'm having some problems finding a regular expression. It sounds very simple but I couldn't get anything to work. What I want is an eregi_replace (in PHP) that will find any characters including [ and ] and linebreaks. In another words a regular expression that will find anything (don't worry much about symbols). I won't use many symbols but the square brackets are essential. Thanks!
in the leon atkinson book "Core PHP Programming", he says "the eregi_replace function operates identically to ereg_replace with the exception that letters are matched with no regard for upper- or lowercase. "
i used the ereg_replace to find and replace some spaces the spaces in an address string with + so i could use the maps from Yahoo. I already had the address in the form of 123 Front Street and needed 123+Front+Street.