note 110557 added to function.pathinfo

From: Date: Tue, 06 Nov 2012 17:12:54 +0000
Subject: note 110557 added to function.pathinfo
Groups: php.notes 
Request: Send a blank email to php-notes+get-191785@lists.php.net to get a copy of this message
Previous regex exapmle provided by Pietro Baricco with more sugar and result clarity. <?php preg_match('~(?:(.*?([^/\\\\]*?))/)?(?:(([^/\\\\]*?)(?:\.([^\./\\\\]*?))?)/?)$~i', $path, $match); ?> Now: $match[1] - dirname, $match[2] - name of parent directory $match[3] - basename $match[4] - filename $match[5] - extension (if present) ---- Server IP: 69.147.83.199 Probable Submitter: 93.80.186.73 ---- Manual Page -- http://www.php.net/manual/en/function.pathinfo.php Edit -- https://master.php.net/note/edit/110557 Del: integrated -- https://master.php.net/note/delete/110557/integrated Del: useless -- https://master.php.net/note/delete/110557/useless Del: bad code -- https://master.php.net/note/delete/110557/bad+code Del: spam -- https://master.php.net/note/delete/110557/spam Del: non-english -- https://master.php.net/note/delete/110557/non-english Del: in docs -- https://master.php.net/note/delete/110557/in+docs Del: other reasons-- https://master.php.net/note/delete/110557 Reject -- https://master.php.net/note/reject/110557 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#191785) next »