Forum Discussion

mathotp's avatar
mathotp
Occasional Contributor
6 years ago

regular expressions not working in javascript using clickItem

Hi everyone,   I'm have some trouble with the regular expression in javascript while using clickItem.   I'm using this code:  Aliases.HealthWin32.MainForm.MDIClient.frmLiveMessages.pnlClien...
  • AlexKaras's avatar
    AlexKaras
    6 years ago

    Hi Phil,

     

    a) Thank you for the update;

    b) Just recollected after reading your message that in some cases it was required to enclose regexp subexpressions with parenthesis in order they match (this is documented but I don't have a link at hand). So you may try this:

    .tvMessages.ClickItem(/(\\|Boîte de réception.*)\\|(\\|eHealth Box.*)/);