Regex.IsMatch

   No evidence of residual seasonality in the last 3 years at the
        1 per cent level.  F =      0.74

This works to match the text:
System.Text.RegularExpressions.Regex.IsMatch(Text1,”No evidence of residual seasonality in the last 3 years at the"+“.“+ “\n”+”.”+"1 per cent level.”)

   No evidence of residual seasonality in the last 3 years at the
        5 per cent level.

Oddly, this can’t match the text
System.Text.RegularExpressions.Regex.IsMatch.(Text1,”No evidence of residual seasonality in the last 3 years at the"+“.“+ “\n”+”.”+"5 per cent level.”)

Can help to find out the problem with the 2nd formula? Thank you!

Hi @Anonymous2

Use (?=5 per cent level).*

Thanks
Ashwin.S

you are using IsMatch it gives back you boolean type
use Matches activty and pass the above expression!
Cheers @Anonymous2

Pradeep_ShivRobot Master

18h

you are using IsMatch it gives back you boolean type
use Matches activty and pass the above expression!
Cheers @Anonymous2

Hi,

I want to test if the statement exists in my .txt file so I should use IsMatch. Thank you

AshwinS2

18h

Hi @Anonymous2

Use (?=5 per cent level).*

Thanks
Ashwin.S

=======
Hi,

I want to test if the exact statement exists in my .txt file.

   No evidence of residual seasonality in the last 3 years at the
        5 per cent level.

There could be other variation of the statement like

   Some evidence of residual seasonality in the last 3 years at the
        5 per cent level.

Hence I can’t just check if “5 per cent level.” exists. Any solution?

Thank you

Oddly, when I re-try today. It works!