i need a regex for a scan statement that will extract the data fields “comtype”, “37.777125” and “-122.419644”
so far i’ve tried this, but keep getting “variable is not assigned by any conversion specifiers”
set testuri “/mapper/time_map/datatype/comtype/37.777125/-122.419644/13/1309/3164.json?v=1°ree_buffer=0.002&callback=jQuery1720814429080274308_1339544764657&_=1339544771741”
scan $testuri {%[^/]%[^/]%[^/]%[^/]%[^/]%[^?]} one two three four five six seven eight
Why not just use split and then extract the field via lindex?
% set testuri “/mapper/time_map/datatype/comtype/37.777125/-122.419644/13/1309/3164.json?v=1°ree_buffer=0.002&callback=jQuery1720814429080274308_1339544764657&_=1339544771741”