Difference between revisions of "Issue:An Error of conbime using of StringFunctions extension and Simple Form"

From FollowTheScore
Jump to: navigation, search
Line 17: Line 17:
  
 
== Reply ==
 
== Reply ==
 +
Hi Michael,<br>
 +
The problem is that your regex contains a '/' as a normal character. A regex must be delimited by a symbol that does not occur inside the regex. I changed the enclosing /.../ to %...% and now it seems to work. You can use any other character instead of % as long as it is not part of the regex.
 +
 +
BTW my name Gero, not Greo ;-)
 +
:[[User:Gero|Gero]] 09:26, 12 April 2008 (CEST)

Revision as of 09:26, 12 April 2008

Description: An Error of conbime using of StringFunctions extension and Simple Form
Extension / Version: StringFunctions extension   /   1.9.3 (Not sure)
Type / Status: Bug   /   open

Problem

Hi Greo:

When I make this change. The top of the page shows the following message:

Warning: preg_replace() [function.preg-replace]: Unknown modifier 'z' in /www/htdocs/w0057617/dpldemo/extensions/StringFunctions/StringFunctions.php on line 285

Could you give a hand?--Roc michael 03:51, 12 April 2008 (CEST)


Reply

Hi Michael,
The problem is that your regex contains a '/' as a normal character. A regex must be delimited by a symbol that does not occur inside the regex. I changed the enclosing /.../ to %...% and now it seems to work. You can use any other character instead of % as long as it is not part of the regex.

BTW my name Gero, not Greo ;-)

Gero 09:26, 12 April 2008 (CEST)