Quote:
To check it now i use "if (!$read(...))" -- as long as the match is exact, %B1 will be equal to the whole line, and $read will be empty. It even works smile


That well think its found a match if it cant find a match as well

searhing for "asldjkaslkdjaskldjasldjalsdjasdjakld" no match is fouind so $read has nothing in it

I think this should work
if (!$read(.....) && $readln) { .... matched ... }

!$read well be true if not matched or exact match
but
$readln is the line number matched, if there isnt one then its zero so it fails