JSFiddle - React, Tailwind, and code Playground
by riaanc
HTML
<textarea rows=10 style="width: 100%" id="textarea"></textarea>
JavaScript
const regex = /(LIKE.*?')(?<grpLikeValue>[\d.,]+).*?(')/gm;
const str = `http://10.0.66.23/hcare/eware.dll/Do?SID=177717026329678&Act=432&Mode=1&CLk=T&Key0=58&func=baseUrl&dotnetdll=RE_Report&dotnetfunc=ReportDisplayOptions&PopUpWin=Y&ReportName=e:\\hcare\\wwwroot\\reports\\Nadines Reports\\Invoices - Submission status Listing.rpt&PrintType=&ReportFileName=Invoices - Submission status Listing&SF=({vInvoicesListing.inv_date} IN DateTime ( 2018,12,11,0,0,0) TO DateTime ( 2018,12,11,23,59,59)) AND {vInvoicesListing.inv_outstamnt} LIKE '101.50*' AND ({vInvoicesListing.inv_types} = 'MedicalAid')`;
let m;
var match = regex.exec(str);
if (match != null)
{
console.log(match);
$("textarea").text(`Group "grpLikeValue" = ${match.groups["grpLikeValue"]}`);
}
else
$("textarea").text("Not matched");