Thread
:
HELP!!! - Invalid preceding regular expression
View Single Post
#
2
(
permalink
)
01-04-05, 03:55 AM
NeverMind
Community VIP
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
try replacing line 19 with:
PHP Code:
$pattern
=
preg_replace
(
"~\{\{[A-z0-9_]*\}\}~"
,
$var2use
[
$index
]);
the braces are used in regexp to specify ranges, so you have to escape them ..
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [
FF9
]
NeverMind
View Public Profile
Visit NeverMind's homepage!
Find all posts by NeverMind