Hello,
I am trying to make an ini file on macos over mono 5.20.
But I am unable to use scrubbed temp element. I simpy try to add the hour from temp_2 to the end of the temp_1. I tried addend, addstart, replace with 'element' but they did not work.
Here is the snippet of the ini file
index_showsplit.modify {sort(ascending,string)}
sort_by.scrub {single(target="index_showsplit")|"no"|:|,|,}
index_showsplit.modify {cleanup}
*index_temp_1.scrub {regex||"day": "(.*?)", "||}
index_temp_1.modify {calculate(format=date,yyyy-MM-ddThh:mm:ssZ)|1:0 +}index_temp_2.scrub {regex||"start_date": "[\d-]*(T.*?Z)", "||}
temp_3.scrub {regex||"end_date": "[\d-]*(T.*?Z)", "||}index_temp_1.modify{substring(type=regex)|([\d-]*)T.*?Z}
index_temp_1.modify{addend(debug)|'index_temp_2'}
Here is the debug output.
[ Debug ] Element: INDEX_TEMP_1
[ Debug ] Modify
[ Debug ] command & arguments : addend(debug)
[ Debug ] Expression-1 : 'index_temp_2'
[ Debug ] Element value before operation:
[ Debug ] 2019-06-16
[ Debug ] String composer result for Expression-1 :
[ Debug ] Expression-1 expanded :
[ Debug ] Element value after operation:
[ Debug ] 2019-06-16
[ Debug ] Debugging information SiteIni
[ Debug ] Element: INDEX_TEMP_1
[ Debug ] Modify
[ Debug ] command & arguments : addend(debug)
[ Debug ] Expression-1 : 'index_temp_2'
[ Debug ] Element value before operation:
[ Debug ] 2019-06-16
[ Debug ] String composer result for Expression-1 :
[ Debug ] Expression-1 expanded :
[ Debug ] Element value after operation:
[ Debug ] 2019-06-16
[ Debug ] Debugging information SiteIni
the operations you are doing are wrong and it seems all very confusing. Without a base and knowing clearly what you want to do is impossible
Well, the grabbed data is not correct. To get the correct full date, I had to take dd:mm:yy(always gives me a day before) from "day" and hour data from "start_date" and "end_date". That's why the code is a little bit messy.
For example, here's the today's grabbed data