JSFiddle - React, Tailwind, and code Playground
by jfriend00
JavaScript
var str = "#r;text1#r;#r;text2#r;";
var matches = str.match(/#r;(.*?)#r;/);
alert(matches[1]);
by jfriend00
var str = "#r;text1#r;#r;text2#r;";
var matches = str.match(/#r;(.*?)#r;/);
alert(matches[1]);