Archive

Posts Tagged ‘regex’

PHP: Regex Find and Replace any Word (string or text) at one go

Aug 22nd, 2010

How to achieve find and replace in one go? I tried searching for find and replace at a time then I could not find the direct answer on net. There is find/search at a time or replace. I want to do both.
PHP regular expression function preg_replace_callback() can achieve this… READ MORE

Form Input Validation Technique in PHP

Aug 10th, 2007

I am sure you have written form’s input field validation code using your server side scripts. Form validation is most common code we have to write. We generally validate our form for name, age, sex, phone, email and others. For these fields, if we get little complex validation we start… READ MORE