in reply to Unable to retrieve the string bist_top_ctrl from a file
use \s* instead of \s+.
Greetings,-jo