note 58739 added to ref.regex

From: Date: Mon, 14 Nov 2005 17:04:52 +0000
Subject: note 58739 added to ref.regex
Groups: php.notes 
Request: Send a blank email to php-notes+get-98549@lists.php.net to get a copy of this message
I have been searching for a way to match all tags except one for a long time and found it recently: <((([^t])|(t[^a])|(ta[^b])|(tab[^l])|(tabl[^e])|(table[a-z]))[a-z]*)> will match everything except <table> NOW: I thought I could apply it to the following problem but I couldn't manage: How do you get 'titi', the content of the smallest embedded table in: <table>toto<table>titi</table></table> using grep? Anyone? S. ---- Manual Page -- http://www.php.net/manual/en/ref.regex.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+58739 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58739&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58739&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58739&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58739&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58739&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58739&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58739&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+58739&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#98549) next »