我怎樣才能提取的部分(多線)直列如果是寫在像這樣的javascript代碼:提取內嵌-IF項目
(MYDATA.FIELD > 1.03 ? 'higher than' : (0.97 > MYDATA.FIELD ? 'lower than' : 'equal to'))+
groups:
"MYDATA.FIELD > 1.03" ,
"'higher than'" ,
"0.97 > MYDATA.FIELD" ,
"'lower than'" ,
"'equal to'"
兩個直列如果一條線,我有此正則表達式:
\((.*?)\s?\?(.*?)\:\s*(\((.*?)\s?\?(.*?)\:(.*?)\))\s?\)
或
(Condition1 == true || condition2 == 0.2) ?
{"type":"text","value":"..."},
{"type":"text","value":"..."},
{"type":"text","value":"..."},
:
{"type":"text","value":"..."},
{"type":"text","value":"..."},
) + ...
groups:
"Condition1 == true || condition2 == 0.2" ,
"{"type":"text","value":"..."},
{"type":"text","value":"..."},
{"type":"text","value":"..."}," ,
"{"type":"text","value":"..."},
{"type":"text","value":"..."}," ,
我要編輯我的javascript代碼,使JSON對象,所以沒有需要javascript替換函數!
最大深度:2
示出了用於在上述輸入 – RomanPerekhrest
預期的結果中提取'condition','truePart'和'falsePart'加入到質疑,@RomanPerekhrest – MohaMad