Ignore a error in RegEx

Hello everyone,
I am trying to extract a series of keywords from a database and according to these create a string, but when no matches are found with some keywords the process stops and I get the error "Object reference not set to an instance of an object ".
How can I ignore this error in matches and keep searching between words?
Please this is urgent.

1 Like

Hi @Sebastian523,

Have you try IsMatch activity? It gives a True/False (Boolean variable). Use If activity to test the Boolean variable, in Then add Matches activity.

2 Likes

Hi @Sebastian523

use if activity to ensure matchesResult has one count at least,

enumerable.Count(matchesResult)>0

Then proceed next.

Thanks!

it’s because Input may be missing!

Thanks @GreenTea that’s just what i needed

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.