On Fri, 2004-02-13 at 13:25, pete M wrote:
> Im trying to scan a file and lift the image name from the
> ie
>
> where there could be ' or "
>
> I messed around but am 2 embarassed to post code cos it dont work ;-(
Always post code, it can help us understand what you are looking to do.
Are yo
On Fri, Feb 13, 2004 at 02:19:11PM -0500, joel boonstra wrote:
> if (preg_match('//ig', $dah, $matches)) {
> print_r($matches);
> }
Doh! The '/ig' should just be '/i'.
joel
--
[ joel boonstra | gospelcom.net ]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Sat, Feb 14, 2004 at 03:05:40AM +0800, Jason Wong wrote:
> $doo[1] = '';
> $doo[2] = "";
>
> foreach ($doo as $dah) {
> if (preg_match('//i', $dah, $matches)) {
> print_r($matches);
> }
> }
Note that characters within square brackets don't need to have the | to
separate them; it's a ch
On Saturday 14 February 2004 02:25, pete M wrote:
> Im trying to scan a file and lift the image name from the
> ie
>
> where there could be ' or "
>
> I messed around but am 2 embarassed to post code cos it dont work ;-(
It's always better to post something no matter how bad you may think it is
4 matches
Mail list logo