Regular expression for finding blank annotations

I am using regular expressions to find and resolve annotations that I left blank because of ambiguity. However, the regex for white space (\s) doesn’t work, even if I use the expressions for beginning and end of line (^ and $, respectively). Does anyone know how I can find all annotations on a specific tier with no text in them?

Also, in some cases, I didn’t create a blank annotation underneath, and there would only be a text annotation on the highest tier. Does anyone know how I can use regex to find all annotations with no child annotations?

Hi,

You almost have the answer to the first question already; the regular expression ^$ should give you all annotations without text in them, both in the single file search (Search and Replace) and the multiple file search (Structured Search Multiple eaf).

The answer to the second question depends on the type of search. The structured multiple file search has as one of the constraints between query fields on two layers the option No annotation. The tier constraints drop-down list to the right contains the option Must be parent and child, together these options should allow to find any annotation on a parent tier with no annotation on the child tier.
The single file search has a similar but slightly different option, but maybe you can specify first which type of search you wish to use (single or multiple file)?

-Han

Perfect, these are exactly the answers I needed. As always, thank you Han!