search regex bug