- Регистрация
- 08.09.2011
- Сообщения
- 139
- Благодарностей
- 7
- Баллы
- 18
I am trying to extract all hashtags in a instagram page, but i could not find the right regex.
I am using this bellow (string that starts with # and after it has an space - shortest match)
\#.*?(?=\ )
But a lot of crap is coming together. How do i improve this regex to get only the hashtags and not parts of the DOM that has nothing to do with the hashtags?
thanks.
I am using this bellow (string that starts with # and after it has an space - shortest match)
\#.*?(?=\ )
But a lot of crap is coming together. How do i improve this regex to get only the hashtags and not parts of the DOM that has nothing to do with the hashtags?
thanks.