[ticket/13295] Add function get_preg_expression() core event

Add function get_preg_expression() core event in includes/functions.php
to allow adding/modifying commonly used regular expresiions.

<a hfer="https://tracker.phpbb.com/browse/PHPBB3-13295">PHPBB3-13295</a>.