preg_match_all handle with spaces in between...
From: Rene (adsl487266_at_tiscali.nl)
Date: 03/29/05
- Next message: Janwillem Borleffs: "Re: preg_match_all handle with spaces in between..."
- Previous message: CyberDog: "Re: Characters in a string"
- Next in thread: Janwillem Borleffs: "Re: preg_match_all handle with spaces in between..."
- Reply: Janwillem Borleffs: "Re: preg_match_all handle with spaces in between..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 29 Mar 2005 20:45:08 +0200
Im trying to make this script below just a little bit safer.
$html=implode(file('index.html'));
preg_match_all("!\<%image\((.*)\)%\>!U", $html, $results);
echo $results[1][0];
In the index.html page theres a line:
<%image(picture.jpg|400|267|Description)%>
But when I replace this into: (with some spaces in between):
< % image (picture.jpg|400|267|Description) % >
Then the $results is empty...
Can someone tells me what to do?
- Next message: Janwillem Borleffs: "Re: preg_match_all handle with spaces in between..."
- Previous message: CyberDog: "Re: Characters in a string"
- Next in thread: Janwillem Borleffs: "Re: preg_match_all handle with spaces in between..."
- Reply: Janwillem Borleffs: "Re: preg_match_all handle with spaces in between..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|