Matches activity faulty

Hi guys,

I’m trying to get my matches activity to work but to no avail. I’m trying to extract the following fields of information:

Fields

As in I’m trying to extract Xbox, FIFA19, etc. My regex code checks out on the expression checker:

However, when I run my bot, nothing happens.
Process

Matches Enhanced.xaml (6.9 KB)

Can someone please tell me what I’m doing wrong? Thanks!

1 Like

@Spacecats7 - Only thing you have to check is that, check the output of the variable you used for Read Text whether it is in the same format of “Platform:Xbox” or not

Thanks,
AK

You want to extract the values after : ?

I would use something like this

Platform:([\s\S]*?)Game

This regex select everything between Platform: and Game in its Group 1.

You can use similar logic to select other stuff as well

hi @Spacecats7,

try by setting pattern as —> (?<=: ).*
And you can print those values by using for each loop, but if you want only 2 values (Platform and Game) then, simply use:

  1. List(0).ToString for Platform.
  2. List(1).ToString for Game. (where, List is output variable of Matches activity.)

here’s the workflow, if you need. —> Matches.xaml (7.3 KB)