i have mysql table text(id, text) with values:
1, 'some #text with #hashtags ...'
2, 'more #text without....'
... and more
is possible in sql get count for any hashtags ? something
like select count(regexp) from text where...regexp... magic happened ;)
needed result: #text ...2x, $#hashtags 1x
i cant select text with
select * from table where text REGEXP '#[a-z]*
but this way i get only rows with any #hashtag
Any idea ?
Ok, i can select all and count in result with php of course, but its possible only mysql solution ?