There is a function script, var f = new Process("name01", "code01", "version01");
I want to use a regular expression to filter to get the name01 property. But this filter: "([^"]+)" works for the all properties.
"name01"
"code01"
"version01"
How can I get the name property without double quotaions, here is name01, it is the first parameter in the function. It only appears after the Process keyword.
Edit1: In my first quesiton, the both patterns (?<=Process\(")[^\r\n"]* and \bProcess\("([^"]+)"[^()]*\) work for the case. Thanks.
Edit2: It happens that another requirment to retrieve the all 3 arguments of the process function from the text script below:
var f = pmb.Process("name01", "code01", "version01")
.Task("name01", "code01");
I need to get the process function argument:
name01
code01
version01
And dont need the task function argument. Firstly(Thanks the Fouth Bird),
\bProcess\([^()]*\)
This only matched Process("name01", "code01", "version01"), should I use the second pattern to filter it to get the 3 arguments? Thanks!
