Re: Need help with ereg regular expression
| From: | Jason Wong | Date: | Wed, 02 Feb 2005 23:04:50 +0000 |
| Subject: | Re: Need help with ereg regular expression | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-207944@lists.php.net to get a copy of this message | ||
On Thursday 03 February 2005 03:44, KHS wrote:
> >On the other hand, I think you could safely do:
> >
> >$regex = "^#include(.*)$";
> >
> >and get what you want by using trim on the captured expression.
>
> no this would leave me with <, >, and " marks.
Then string replace those characters. Or am I missing something terribly
obvious?
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
New Year Resolution: Ignore top posted posts