Issue:An Error of conbime using of StringFunctions extension and Simple Form

From FollowTheScore
Jump to: navigation, search
Description: An Error of conbime using of StringFunctions extension and Simple Form
Extension / Version: StringFunctions extension   /   1.9.3 (Not sure)
Type / Status: Change Request   /   closed

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)

Re replay

Hi Gero,
Sorry for spelling your name not correct. On the other hand, thank you for your helping me again and it's very nice I've learned a lesson with regex in this time. :-) --Roc michael 11:19, 12 April 2008 (CEST)