var quote = 'some text here [[quote=bob]This is some text bob wrote[/quote]] other text here';
I'm trying to get [[quote=bob]This is some text bob wrote[/quote]]
.
I was using:
match(/[[quote=(.*?)](.*?)[/quote]]/)[1]
but it gives me some text here [[quote=bob]This is some text bob wrote[/quot