Code: Select all
$data = "this is a test string. This is another test. And another. But \. this hope fully does not get split up. While \\. this should be ;)";
$split = preg_split("#\\.#",$data);The "\." should not be counted to be splitten... Doing something like
Code: Select all
$split = preg_split("#[^\\]\\.#",$data);Also "text. \\. test" should be 2 parts... so I need a completely working splitting. The escaping can be anything, it might be "\\\\\\\\\\." and it must be handled correctly, MUST be...
Any help?