Can someone please transform this to nginx. I am very bad at regex and similar stuff. Found this on some boilerplate and need to convert it for nginx usage. I don't know if all off it is important but definitively redirects to index.php and rewrite for pictures and scripts. Thank you :)
<IfModule mod_rewrite.c>
RewriteEngine On
</IfModule>
# without -MultiViews, Apache will give a 404 for a rewrite if a folder of the same name does not exist
# e.g. /blog/hello : webmasterworld.com/apache/3808792.htm
Options -MultiViews
# Block access to "hidden" directories whose names begin with a period. This
# includes directories used by version control systems such as Subversion or Git.
<IfModule mod_rewrite.c>
RewriteRule "(^|/)\." - [F]
</IfModule>
# php_flag register_globals Off
<IfModule mod_rewrite.c>
# redirect all pages to index.php
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteRule ^(.*) /index.php [NC]
# rewrite all picture|css|js requests
RewriteRule ^.+(/(images|css|js)/.+)$ $1 [L]
</IfModule>