There is a file, in it sentences - one per line. But at the same time there are glued sentences (in the second line - a sentence starting with “The first”).
Make up family photos.
You will use. She gets ready to hit it back.
I need to find sentences in which, after a small letter, a big one immediately goes on, and then a small one (i.e., the second line in the example). And then decompose the normal sentences and glued together in different files.
$lines = file('text.txt'); foreach($lines as $line){ if (preg_match("#^(регулярка)$#i", $line)) file_put_contents('ok.txt', $line, FILE_APPEND | LOCK_EX); else file_put_contents('err.txt', $line, FILE_APPEND | LOCK_EX); }
Help with the regular season.
/[az][AZ][az]/
, even if they were seen for the first time in their lives - MikeMy name is Rein I am lamer
Is there not one-letter words? - ReinRaus