-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] #]는 자바 스크립트에서 일치합니다
그래서, 당신은'hello','hi'의 압축을 저와 함께 작동하고,'welcome'는 - 것이 정확 ? – vlaz