'x' switch in preg functions to ignore whitespace

'x' switch in preg functions to ignore whitespace could fix National formatting issue #16