Wikipedia talk:AutoWikiBrowser/Regular expression

Query help
I'm trying to put together a query that'll search for all pages that have this code:

I tried this, but it returned no results, and on some testing, it seems to be struggling with the newline character.

Any idea what I'm doing wrong? &#123;{u&#124; Sdkb  }&#125;  talk 20:57, 1 August 2023 (UTC)


 * Elastic Search as used in Cirrus has an unusual and limited regular expression syntax. In particular, it doesn't support either \n or \s.  Also, the / in /noinclude needs to be escaped as \/.  On the bright side, "." does match a newline.  You could try something like this.  You may get more results by adding * in a few more places. Certes (talk) 23:23, 1 August 2023 (UTC)
 * A  tag may enclose multiple categories.  Because ".*" matches newlines, the search above checks for the last (and perhaps only) category being navboxes.  To limit the query to   tags which enclose only a single category, change the existing ".*" to "[^\]]*".  (Unlike most regexp flavours, Elastic requires ] to be escaped even at the start of [].)  Alternatively, to also find pages where other categories appear after navboxes, change the last "." to ".*" instead.  Certes (talk) 10:29, 2 August 2023 (UTC)
 * Much thanks! The latter is what I'm looking for, so I adopted that at the BRFA. Cheers, &#123;{u&#124; Sdkb  }&#125;  talk 16:09, 2 August 2023 (UTC)