The HTML5 pattern attribute on <input> elements is a JS-format regexp except without slash delimiters. (And it must match the entire string, not just a substring).
So the regexp inline editor should open when the cursor is on one of these attributes.