table links
id url
1 http://www.domain.hk/index.php?main_page=index&cPath=8
3 http://www.domain.com/index.php?main_page=index&cPath=3
6 http://www.domain.com/index.php?main_page=index&cPath=8
8 http://www.domain.hk/index.php?main_page=index&cPath=7&language=tc
9 http://www.domain.com/index.php?main_page=index&cPath=3
How to count number of same cPath id and number of same cPath id's domain from field url use regex ?
I want the results like this:
cPath : 8 total: 2 hk: 1 com : 1
cPath : 3 total: 2 com : 2
cPath : 7 total: 1 com : 1
Thanks a lot.