var str = 'deblsaghfalaр[N]bla-bla[/N]dfgdf[N]any text[/N]sdfds', arr = str.split(/\[N\][^\[]*\[\/N\]/) alert(arr)