update: Thanks for the answers below. But I noticed they do not handle the following special cases: lis=1 and lis=z , ...
I am writing a function that will take an expression as input. I want to make sure the expression is valid first before processing it. Looking for a correct to use ...
We wish to analyze the tree structure of HTML documents that consist of nested lists, ie, using the HTML tags <ul> and ...