Improved regex parsing. To think [[ f =~ f( ]] )* ]] is valid..