mathotp
6 years agoOccasional Contributor
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.pnlClient.SplitterMain.TRzSplitterPane.pnlTreeview.tvMessages.ClickItem("regexp:\|Boîte de réception.*\|eHealth Box.*)");
and I'm always getting the following error:
The TreeView node 'regexp:' not found.
I did try a few thing but nothing does it.
Does anyone have any ideas, am I doing somthing wrong ?
As per the documentation, what I'm doing seems to be correct.
thank you
Phlippe
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.*)/);