Home » Archive

Articles tagged with: regex

PHP »

[29 Apr 2010 | 2 Comments]

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]

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 | 7 Comments]

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 | 2 Comments]

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