@NogDogJun 26.2019 — #Maybe try https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split and scroll down to the example that uses a regex as the separator?
@sagarchavadaJun 27.2019 — #My point of view you have to save Regex in your code using Regular Expression you can simplified your code it have you to solve your issue in your code. this is link how to set Regex in your code: