How to use Regex for Inxed Number in Selectors

Hello,

I am trying to extract HTML table from web page where index number occure in selectors. that index number might gets changed in future, So for that I want to use regex there.
I tried with below but not able to get output.

image

image

Actual working Selectors is -
image

Hi @nilesh.mahajan

To use regex in selector please follow the below syntax

image

You can look at this video on using regex in selectors

Thanks

Hello,

I have tried with this, but it gives me an error.

HI @nilesh.mahajan

Could you please let me know whats the actual error?

Thanks

Hi,

I think regex selector doesn’t support idx attribute, as the following.

Perhaps you should choose other way.

Regards,

1 Like

idx is a special sort of attribute. UiPath adds that attribute automatically when the current selector can apply to multiple different elements (it isn’t specific enough).

The best way to proceed is try mixing and matching attributes until idx no longer appears, which means you’ve found the only element on the page matching that selector.