Hello, is it possibile to force non greedy matching for globbing expressions? I use this code to replace interactively some template labels: str='{{{a}}}{{{b}}}' tmp= while [[ $str == (#b)(*)'{{{'(*)'}}}'(*) ]] do vared -p "$match[2]: " tmp str=$match[1]$tmp$match[3] done echo $str I would like for them to be presented in the order they occur in $str, I get them backward instead thanks Pier Paolo Grassi