Is it possible to use regEx for form field IDs?

Hello,

I'm a new user of Keyboard Maestro.

It is possible to use regEx to identify a form field.

So, if the field ID changes...
//DIV[@id="select_multi_5chosen"]/UL/LI/INPUT
//DIV[@id="select_multi
6chosen"]/UL/LI/INPUT
//DIV[@id="select_multi
7_chosen"]/UL/LI/INPUT

Is it possible to use regEx in the form field ID?
example:
//DIV[@id="select_multi_\d_chosen"]/UL/LI/INPUT

Any help is appreciated, thanks.

Chris

Depending on the version of XPath, you should be able to use the starts-with or contains functions.

(XPath 2.0 also has a matches function, but regular expressions have a way of introducing additional problems)

Xpath expression to find values that start with - Stack Overflow