RegEx Question

From: Date: Sun, 20 May 2001 17:18:08 +0000
Subject: RegEx Question
Groups: php.general 
Request: Send a blank email to php-general+get-53615@lists.php.net to get a copy of this message
Hi, I have an ereg question::. $data = a big string , while (ereg ("testing([^;]*);blah(.*)",$data,$args)) { $this = $args[1]; $data = $args[2]; } What I wanna do ,obviously, is to get all the strings between 'testng' and 'blah' in an array. This will do it, yet when it wont work when special chars such \n exist between 'testing' and 'blah'. Any ideas?

« previous php.general (#53615) next »