Method: str::match
preg_match sucks! This tries to make it more convenient
Info
Syntax
str::match($string, $preg, $get=false, $placeholder=false)
Parameters
- $string (string)
- $preg (string) Regular expression
- $get (string) Which part should be returned from the result array
- $placeholder (string) Default value if nothing will be found