Page MenuHomePhorge

function pregsprintf($pattern, ..., ...)
libphutil Technical Documentation ()

Format a regular expression. Supports the following conversions:

%s String

Escapes a string using `preg_quote`.

%R Raw

Inserts a raw regular expression.
Parameters
string$patternsprintf()-style format string.
stringFlags to use with the regular expression.
...Zero or more arguments.
Return
stringFormatted string.