explain the usage of re in query