remove \A.* from regex