• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Preg_replace error

#1
[eluser]Unknown[/eluser]
A PHP Error was encountered
Severity: Warning
Message: preg_replace() [function.preg-replace]: Unknown modifier '('
Filename: helpers/custom_helper.php
Line Number: 20

Code:
$text = preg_replace('([[:space:]()[{}])(www.[[email protected]:%_\+.~#?&//=]+)',
'<a href="http://\\\\2" class="oembed" target="_blank">\\2</a>', $text); #line 20

Disregard the other \\


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.