JSFiddle - React, Tailwind, and code Playground

by chriswilsondc

JavaScript

var path = "L34,52L29,1003L342,234";

var ptrn = RegExp(/L\d+,\d+/);

document.write(ptrn.exec(path));