> Have you tried [[:space:]]* instead? That'll pull in line breaks, tabs > and spaces. > > --Dan
I just tried it, but, still can't make this work. Also, I'm getting different results between explode() and preg_split(), is that normal? Here's what I'm trying: $content = "blah blah page_break blah blah blah blah"; $contentpage = preg_split("[[:space:]]*page_break[[:space:]]*", $content); But I just get a PHP error: Warning: Unknown modifier '*' in testme.php If I try this: $content = "blah blah page_break blah blah blah blah"; $contentpage = preg_split("[[:space:]]page_break[[:space:]]", $content); I get this PHP error: Warning: Unknown modifier 'p' in testme.php I'm not sure what I'm doing wrong with the reg exp, but, it won't even parse. Both expressions above used with explode() only produce empty array variables, as though it's stripping out everything. What am I doing wrong? Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php