mercredi 27 décembre 2017

regular expression pattern [#[#hello]#] match in javascript

var str1 = "hello hello [#[#hello]#] [#[#hi]#] [#[#welcome]#]"

var arr = textToPost.match(/#^[a-zA-Z0-9]/g)

i want to extract string which matches this pattren [#[# * ]#] .

Aucun commentaire:

Enregistrer un commentaire