Valadoc | Vala | Tutorial | API-References | Markup

Regex


Description:

public Regex (string pattern, RegexCompileFlags compile_options = 0, RegexMatchFlags match_options = 0) throws RegexError

Compiles the regular expression to an internal form, and does the initial setup of the GRegex structure.

Parameters:

pattern the regular expression
compile_options compile options for the regular expression, or 0
match_options match options for the regular expression, or 0
error return location for a GError

Returns:

a GRegex structure. Call g_regex_unref() when you are done with it