> -----Original Message-----
> From: R.S. Herhuth [mailto:[EMAIL PROTECTED]]
>
> <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.
This may not be the best way but you could use explode to get it into an
array and then use that as an varible.
http://se.php.net/manual/en/function.explode.php
$data =<a href="javascript:void(EXTERNALLINK('102'))">
$var = explode("'",$data);
$var['2'] would then be the id number (I cann't recall the function really
so I hope I didn't make any mistakes now =)
/brother
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php