How to search by regexp

I just want to get the messages that contain Ban 172

I use Ban AND 172. ,but it does not work , how to ignore the message that not contain Ban 172
how to use regexp query to get it.

did you try searching for Ban 172*

thinks,but it dones not work.

Did you read the docs?

https://docs.graylog.org/en/3.1/pages/queries.html