changed private members to protected for extendibility
updated php port to use custom regexes file if specified