The invention provides a short
message authentication code residing method and device. The method includes the steps that a
regular expression is adopted to conduct keyword matching to the short message content; when the short message content contains the keyword, the
regular expression is adopted to conduct
authentication code matching to the short message content so as to obtain the post-matching
authentication code; the preset time of the
authentication code is displayed at the present interface. The method is capable of automatically extracting the authentication code in the short message and displaying the preset time at the present interface, the user can fill in the authentication code according to the displayed authentication code on the authentication code interface within the preset time, the
user needs not to remember the authentication code, and the
user needs not to frequently switch from the short message application and the present application. According to the short
message authentication code residing method and device, the authentication code is directly displayed on the present interface of the authentication code, the
filling in of the authentication code needs only one step, that is,
filling in the authentication code by manual inputting, so that the process of
filling in the authentication code of the user is greatly facilitated and user experience is improved.