Jump to content

syntax error, unexpected '.'


The Little Guy

Recommended Posts

My regexp has an error, and I can't figure out where it is coming from.

 

Parse error: syntax error, unexpected '.' in /home/ryannaddy/tutorials.phpsnips.com/incl/classes/Main.inc.php(87) : regexp code on line 1

 

$string = preg_replace("/\[code\](.+)\[\/code\]/isUe", "'<span class=\"exampletxt\">EXAMPLE:</span><div class=\"code\">'.str_replace('<br />','',$1).'</div>';", $string);

 

How would I fix that?

Link to comment
https://forums.phpfreaks.com/topic/252356-syntax-error-unexpected/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.