Function `contains` using using Regex

Sorry, might I ask you to elaborate on the #NUM# param?

For instance, I need to use contain() in the following manner (pretending it parses regex…):

contains(/topic/i) - that is, case insensitive “topic”. Thanks for the clarification.