java - extract hashtag and mention from instagram -


is there java library or regex pattern extracting hashtag , user mention instagram media caption? know twitter-text api can not handle no space hashtag.

this 1 should work (^|\s)(#[a-z\d-]+) (got here)

anyway, if using instagram api, there part of result when call gives hashtags:

  ["data"]=>   array(14) {     ["attribution"]=>     null     ["tags"]=>     array(3) {       [0]=>       string(13) "workingermany"       [1]=>       string(18) "trabajarenalemania"       [2]=>       string(10) "radeberger"     } 

if, requested in comment, need korean chars, add them regular expression this: (^|\s)(#[a-z\p{hangul}\d-]+) more alphabets want, more set of chars should add, \p{hiragana}, \p{katakana}, or \p{latin}


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -