Parsing for dynamic content

Brain fart here. I’m trying to parse a file for a sub-set of the computer name.

lines whose (it contains “((substring(9,2) of computer name) as string)”) of file “c:\somefile.log”

Hard to tell your intent without samples, but there is at least a quoting problem.
This may be closer

lines whose (it as string contains (substring(9,2) of computer name) ) of file "c:\somefile.log"

Thanks, that worked.

1 Like