Home » Archive

Articles in the Regular Expression Category

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]

This article contains PHP code with regular expression to validate different numbers and strings. Integer validation can be done for validating age. Decimal validation can be done for validating price. Simple String validation can be done for validating name. Email validation can be done for validating email.
preg_match PHP function is used to perform the regular expression match.

Perl, Regular Expression »

[15 Aug 2007 | 2 Comments]

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