JSFiddle - React, Tailwind, and code Playground

HTML

<div id="res">
</div>

JavaScript

var str = '[quote="user1"]this is the first quote[/quote]\n[quote="user2"]this is the 2nd quote and some url https://www.google.com/[/quote]\nThis is all the text I\'m wirting about myself.\n\nLook at me ma. Javascript.';

var regex = /(quote\].+)(.*)/ig;
// var regex = /.+((quote\]).+)$/ig // Returns null
// var regex = /( .* (quote\]) .*)$/ig  // Returns null 
document.getElementById('res').innerHTML = "Results: "+str.match(regex);