RE: [Phplib-users] Regex and Templates
Brought to you by:
nhruby,
richardarcher
From: Rob H. <rob...@ws...> - 2002-10-31 21:07:43
|
I figured as much, I just wanted to make sure I wasn't missing something. I added a [:punct:] tp the two pregs in template->finish() to exclude anything with punctuation in it. > -----Original Message----- > From: php...@li... > [mailto:php...@li...]On Behalf Of Björn > Schotte > Sent: Thursday, October 31, 2002 2:43 PM > To: Phplib-Users > Subject: Re: [Phplib-users] Regex and Templates > > > * Rob Hutton wrote: > > The regex {6,32} expression to match 6 to 32 times gets eaten by the > > templates when remove_unknowns is on. > > That's because it preg_replace()s all between { and }. > Solution: set remove_unknowns to off, this should be > sufficient (and, if there are any keywords that won't > get replaced, manually set_var() them with "KEYWORD" => "" > in order to remove it). > > Same for stylesheets you have in your template (of > course one should define them via <link rel ...> > so that browsers can cache them). > > HTH, Björn. > -- > 35 Kundenportale mit mehreren tausend Nutzern erstellen. > Bei geringen Kosten und einer großen Anzahl an Modulen > (DMS, CMS, CRM, Community-Funktionen). Wie das geht? > => http://testthesystem.com/ * te...@th... > > > ------------------------------------------------------- > This sf.net email is sponsored by: Influence the future > of Java(TM) technology. Join the Java Community > Process(SM) (JCP(SM)) program now. > http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users > |