Regular Expression in PHP

del.icio.us del.icio.us  |  digg Digg  |  RSS Subscribe

Read my articles below and learn new things on Regular Expression (also known as regex) handling in PHP. Got questions? Get the answers!

PHP Script for Converting Relative to Absolute URL

Jun 5, 2009 | Tags: PHP, Regex | 14 comments

This is a very simple PHP script to convert relative URL to its absolute path, given a base URL. Read more

Regular Expression for File Extension

Nov 10, 2008 | Tags: Regex, PHP | 11 comments

Getting file's extension is not as easy as it looks. This is because there is no strict format for file extensions. To obtain the extension from file names, you have to use regular expression. See the following example. Read more

Page Indexing - Get The Title and Meta Tags From All of Your Pages

Nov 7, 2008 | Tags: PHP, HTTP, Regex | 10 comments

I'm doing some projects to help webmasters maintain their sites. Some of these tools include: Link checker, Del.icio.us auto submitter and many more. One of the components I need is a web crawler/spider to build a page index, which will be used by the higher level components to perform their tasks. Read more

Parsing Tags From an HTML Page

Nov 4, 2008 | Tags: PHP, Regex

This tutorial shows you how to parsing tags from an HTML page. Some tags can be useful. For example, you can use the title and meta tags to generate RSS feed entry or submit the page to social bookmarks Read more