Re: Fwd: RE: [PHP] Odd Strpos Behavior
| From: | Jason Wong | Date: | Tue, 10 Dec 2002 07:43:20 +0000 |
| Subject: | Re: Fwd: RE: [PHP] Odd Strpos Behavior | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-127605@lists.php.net to get a copy of this message | ||
On Tuesday 10 December 2002 09:45, Steve Keller wrote:
> At 12/9/2002 07:20 PM, John W. Holmes wrote:
> > It'd be easier to use a regular expression for something like this.
> > Something like this would work (from PHP Architect):
>
> I appreciate that, but considering I'm working from about 1200 files that
> already exist and use [] to denote table names, I kinda gotta do it this
> way.
John's suggestion of using '{', and '}' as the tag delimiters was to
simplify
the regex. You can continue to use '[', and ']' as your delimiters, just
change the regex accordingly -- and don't forget that '[', and ']' needs to
be escaped.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
If life gives you lemons, make lemonade.
*/