Various fixes and additions

Added support for:
-Variables in strings
-Several variable styles (eg. ${HOME}, %{HTTP_REFERER}, $1, %2.1, %3+)
-Regular expressions starting with "^" and/or ending with "$"
-Flags (eg. [F])