Home » Archive

Articles tagged with: Regular Expression

PHP »

[29 Apr 2010 | No Comment | 305 views]

Suppose, I have a string with text and number and I only want the number. I don’t want the characters and text of the string.
Here is the way out:-

PHP, Regular Expression »

[22 Apr 2010 | One Comment | 366 views]

Here, I will be showing you a simple and easy one line code to format URL string with PHP. By URL string, I mean the url key in any Search Engine Friendly URL.
I have used preg_replace function to do so.

PHP, Regular Expression »

[2 Mar 2008 | 6 Comments | 524 views]

In this article, you will find php validation code for:
1) Interger Validation
2) String Validation
3) Decimal Validation (two digits after decimal)

Perl, Regular Expression »

[15 Aug 2007 | One Comment | 34 views]

Fun with perl regular expression
A) $st = “The programming republic of perl”;