Thursday, July 19, 2012

Remove all alpha-numeric characters from a phone number

Hi Friends,

To remove all alpha-numeric characters from a phone number.. in php simple one line code..


$phoneStr = "+91-23223-24232";

$phone = preg_replace('/\D+/', '', $phoneStr  );


resulted phone number will be plain number like 912322324232


Enjoy!!!
Ravi

Remove Yahoo Search from Firefox

Hi Friends,

Yahoo messenger sometimes installs yahoo search in firefox. And when we search something from address bar, it displays yahoo search results. I never want so.. I wanted google back and here it is how to do so..

1. Open about:config in firefox. Just type about:config in address bar.
2. It will ask whether you will be careful or not.. say I'll be careful, I promise!
3. In the search bar search for keyword.url
4. Modify the value to your favorite search engine. I wanted google so I modified the value to
http://www.google.com/search?q=
Now it will be searching google only.. enjoy!!!

-Ravi