I have the following HTML:
A subsection B <
You could do this:
$('ul > li:not(:has(ul))');
But it would be better to give your top level an ID so you can target it with a valid CSS selector:
$('#topUL > li')