EDIT: Sorry in advance for this long page.
Hey everyone. I've been messing with preg_replace, and out of all the things in PHP, this is the only thing I seriously don't understand. php.net doesn't help at all, and tutorial sites don't help. The format for each string value is
Test,Test,58636,Y,1C1,1U2,Y1,934667,9727677, ,\"346mdfsh13\",\" \",,TTI1FGGHADHDFHFADHMFADFGDFAFHC,\"\",\"John, A\"
This is one entry per line:
$tex = preg_replace("\/n(.+?),(.+?),(.+?),(.+?),(.+?),(.+?),(.+?),(.+?),(.+?),(.+?),(.+?),(.+?),(.+?),(.+?),(.+?),(.+?),(.+?)","\$do->parse('\\1','\\2','\\3','\\4','\\5','\\6','\\7','\\8','\\9','\\10','\\11','\\12','\\13','\\14','\\15','\\16','\\17')",$tex);
Keep getting this error: Warning: Unknown modifier ',' in /home/street/public_html/text/omg.php on line 22
If any of you could tell me whats causing this problem, and maybe any other forseeable problems, if you could please post it. Thanks in advance.