Ah, now I understand your problem. You wanted to create a group which contains only subgroups and no regular expression strings. Sorry, but that is not possible.
A group like
Procedure Group must have 1 or more regular expression strings to find something. When there are no regular expressions defined in a "root" group or nothing found by these expressions, all the searches defined by the regular expressions of all subgroups are not executed at all.
The regular expression strings defined for a subgroup are executed only from the line found by one of the regular expressions of the parent group to bottom of file. (Better would be to next line found with the regular expression strings of the parent group, but that is currently (UE v16.10.0.1036) not the case.)
For a subgroup UltraEdit first runs a regular expression search with the string defined for
Open Tag starting from the line found before with the parent regular expression string. When a string is found, it searches again for the regular expression string defined with
Close Tag to explain it simple. In real it is a bit more difficult because nesting of the tags is taken into account, required for example for C/C++ when local variables should be found also inside a nested block defined by { ... }. Inside this block the regular expression search of the subgroup is executed.
A good example to understand that behavior is following useless C++ function:
- Code: Select all
void int myclass::foo (int iVar1, long lVar2)
{
int iLocalVar;
if((long)iVar1 * 16 == lVar2)
{
iLocalVar = iVar1 >> 2;
}
else
{
int iTempVar;
iTempVar = (int)(lVar2 >> 16);
iLocalVar = iTempvar + iVar1;
}
}
The function list shows with standard c_cplusplus.uew for this function:

- Function list view for the small useless C++ function.
- function_list.png (683 Bytes) Viewed 1717 times