JSFiddle - React, Tailwind, and code Playground

by remguif

HTML

<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>

JavaScript

var Text="double  iMA(   string       symbol, int          timeframe,int          ma_period, int          ma_shift, int          ma_method, int          applied_price, int          shift   );";
Text="double iMA()";

reg = new RegExp(
  "([a-zA-Z0-9_]+) ([a-zA-Z0-9_]+)\(\);",
  "gi");
  
var result; while (result = reg.exec(Text)) {
  console.log(result[1]);
}
//console.log(Text);