change code about keyword search and regex match