HH\Lib\Regex\to_string
Requires the Hack Standard Library to be installed.
Facebook Engineer?
This function is available as Regex\to_string()
in Facebook's www repository.
Renders a Regex Pattern to a string
namespace HH\Lib\Regex;
function to_string(
Pattern<Match> $pattern,
): string;
The regex pattern follows the PCRE library: https://www.pcre.org/original/doc/html/pcresyntax.html.
Parameters
Pattern<Match> $pattern
Returns
string