drisate Posted September 9, 2008 Share Posted September 9, 2008 I have this error Fatal error: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Failed evaluating code: getJobs(2008.'/'.01, 'CAL') in /home/direct/public_html/administrator/components/com_acajoom/classes/class.jmail.php on line 192 I am trying to get $2 and $3 to be send as one value in getJobs $content = preg_replace('/(\[CAL\=([0-9]*)\/([0-9]*)\])/ie', "getJobs($2.'/'.$3, 'CAL')", $content); Anybody careto help? i am out of options ... i think i tryed everypossible syntaxes ... Quote Link to comment https://forums.phpfreaks.com/topic/123496-preg_replace/ Share on other sites More sharing options...
effigy Posted September 9, 2008 Share Posted September 9, 2008 "getJobs('$2/$3', 'CAL')" Quote Link to comment https://forums.phpfreaks.com/topic/123496-preg_replace/#findComment-637816 Share on other sites More sharing options...
sasa Posted September 9, 2008 Share Posted September 9, 2008 try[code=php:0]$content = preg_replace('/(\[CAL\=([0-9]*\/[0-9]*)\])/ie', "getJobs('$2', 'CAL')", $content); not tested Quote Link to comment https://forums.phpfreaks.com/topic/123496-preg_replace/#findComment-637824 Share on other sites More sharing options...
drisate Posted September 9, 2008 Author Share Posted September 9, 2008 nice works great sasa! Quote Link to comment https://forums.phpfreaks.com/topic/123496-preg_replace/#findComment-637828 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.