<?php $cnt = preg_match_all('~,(?!\d)~', '15,50 руб., 16,70 руб.', $matches);echo $cnt;
Standard input is empty
1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!