Extract two values using Regex

ok.

  1. Assume that you have saved outputs of your matches activities in variables called “Names” and “Numbers” respectively.
  2. For each name in Names, if name.tostring().equals(“Olive”), then you can get respective number with Numbers(Index). See below screenshot:

As you want number for Olive, you need to do this. Or else, for loop is not needed.

Hope this helps you. Let me know if you still have any doubts.

1 Like