AnsweredAssumed Answered

Need help search for a string in a text file

Question asked by rfranklin15 on Mar 18, 2016
Latest reply on Mar 31, 2016 by rakesh.dulam491832

I have a directory of text response files that I want to search individually for the string "false" so I can create an email alert and am having trouble getting it right.


I tried the suggestion listed here How to search for a string in a file... , but it isn't working for me.


I'm starting with a Disk Get shape that points to the directory with the files and going to a Decision shape where I'm comparing Matches Regular Expression, but everything I try seems to return every document in the directory.


For example, if the first value is Static "(?s).*false.*" and the second value is Static ".*false.*" it returns all the files listed because those always match, even if the string is not present in the file.


Any assistance would be much appreciated. Thanks.