regex bearer fix