Return portion of a string

From: Date: Wed, 15 May 2002 14:20:24 +0000
Subject: Return portion of a string
Groups: php.windows 
Request: Send a blank email to php-windows+get-13791@lists.php.net to get a copy of this message
I have an instance where I have an article ($article) that may or may not contain: <a href="javascript:void(EXTERNALLINK('102'))"> There might be many occurrances of this substring in exactly the same format but the id's will be unique with each occurance. Can someone please show me how to extract the id's (in this case the 102) of the above string into an array? I have been through the documentation on substrings and regular expressions but I'm just not getting it. Thanks, Ron

« previous php.windows (#13791) next »