How to write a regular expression that would be pulling a line of only English words (php)?

Hello, there is a line of the form
Zocalo Aston
25*75 Aston Tile Mural
25*75 Boiserie Aston Relieve Tile Mural
3*25 Aston Moldura Border Wall
45*45 Tona Tiles
Of them need to get only English words, made the regular season
$math = preg_match("/^[\s\d a-zA-Z]+$/", string, result);
however, searched only 1 row, others are not.
September 26th 19 at 11:57
2 answers
September 26th 19 at 11:59
Solution
preg_match_all('/([a-z]+)/i', $str, $result);
In principle it would be necessary to handle hyphens, apostrophes and numbers (at the end of words, for example) - the names of these characters consist of... - Melyssa commented on September 26th 19 at 12:02
September 26th 19 at 12:01
$math = preg_match("/^[\s\d a-zA-Z]+$/img", string, result);
$math = preg_match_all("/^[\s\d a-zA-Z]+$/img", string, result);
Unknown modifier 'g'. And if not g then not looking at all - Melyssa commented on September 26th 19 at 12:04

Find more questions by tags PHPRegular expressions