After thinking about it, a quite obvious solution is to use a hidden select to run the actual search that I knew worked haha 🙂
So I guess I didn't need to complain about this ! 🙂
Well anyway, in case it is usefull for someone :
<form>
<label>Test</label>
<description>Test</description>
<fieldset submitButton="false">
<input type="text" token="test.input" searchWhenChanged="true">
<label>test Input</label>
<change>
<eval token="test.input.processed">replace(replace(replace(replace(lower($value$), "[^0-9a-f]", ""), "(..)(.{1,2})", "\1-\2"), "([^\-]{2})([^\-]{1,2})", "\1-\2"), "(.{17}).*", "\1")</eval>
<eval token="test.input.processed_more_simple">replace(lower($value$), "[^0-9a-f]", "")</eval>
<unset token="form.hidden.test.input"></unset><!-- To select first choice anew ! ;) -->
</change>
<default>ac23ghzz</default>
</input>
<input type="dropdown" token="hidden.test.input" depends="$never_shown$" searchWhenChanged="true">
<label>Hidden</label>
<selectFirstChoice>true</selectFirstChoice>
<search>
<query>| makeresults | eval input = "$form.test.input$" | fields input | eval "Simplified Result" = replace(lower(input), "[^0-9a-f]", "") | eval result = replace(replace(replace(replace(lower(input), "[^0-9a-f]", ""), "(..)(.{1,2})", "\1-\2"), "([^\-]{2})([^\-]{1,2})", "\1-\2"), "(.{17}).*", "\1") | eval final_result ='Simplified Result'.";".result</query>
</search>
<fieldForLabel>final_result</fieldForLabel>
<fieldForValue>final_result</fieldForValue>
<change>
<eval token="test.workinginput.processed">mvindex(split($value$, ";"), 0)</eval>
<eval token="test.workinginput.processed_more_simple">mvindex(split($value$, ";"), 1)</eval>
</change>
</input>
</fieldset>
<row>
<html>
Input : $test.input$ .......................
Result of eval Token : $test.input.processed$ .......................
Result of simplified eval Token : $test.input.processed_more_simple$ .......................
Result of simplified eval Token through trick : $test.workinginput.processed$ .......................
Result of eval Token through trick : $test.workinginput.processed_more_simple$ .......................
</html>
</row>
<row>
<panel>
<table>
<title>Test Regex</title>
<search>
<query>| makeresults | eval input = "$test.input$" | table input | eval "Simplified Result" = replace(lower(input), "[^0-9a-f]", "") | eval result = replace(replace(replace(replace(lower(input), "[^0-9a-f]", ""), "(..)(.{1,2})", "\1-\2"), "([^\-]{2})([^\-]{1,2})", "\1-\2"), "(.{17}).*", "\1")</query>
<earliest>0</earliest>
<latest></latest>
</search>
<option name="wrap">undefined</option>
<option name="rowNumbers">undefined</option>
<option name="drilldown">row</option>
<option name="dataOverlayMode">none</option>
<option name="count">10</option>
</table>
</panel>
</row>
</form>
... View more