-2
var str1 = "hello <span contenteditable="false" class="underlineText hashtags hello">hello<span style="display:none;"> [#[#hello]#] [#[#hi]#] [#[#welcome]#]</span></span>"
var arr = textToPost.match(/#^[a-zA-Z0-9]/g)
我想提取与此模式[#[#*]#]匹配的字符串。正则表达式模式[#[#hello]#]在javascript中匹配
所以,要提取'hello','hi'和'welcome' - 是正确的? – vlaz