Another regular expression

From: Date: Tue, 28 Nov 2000 23:11:23 +0000
Subject: Another regular expression
Groups: php.general 
Request: Send a blank email to php-general+get-27669@lists.php.net to get a copy of this message
Hello again. I am still having trouble with the following regular expression: \[link:(.+)\|(.+)\] this matches the first occurrence of a string like "[link:http://www.mlb.com|MLB]" without problems. But if there are more than one ocurrences it behaves unexpectedly. I think this has to do with looping. How do you loop in a regex? -- ************************************ Ivan R. Quintero E.* (507)228-3477 Aptdo 1263 * (507)228-9105 Balboa, Ancon * Republic of Panama * ************************************

« previous php.general (#27669) next »