Replaced the regExp and added a foreach loop. Removed style

https://github.com/GigaOM/gigaom/issues/5083

I tested it using the examples here https://github.com/GigaOM/gigaom/issues/4979 
they all looked good
Take a look at the docs for this, http://codex.wordpress.org/Function_Reference/wp_nonce_field and the usage in https://github.com/GigaOM/gigaom-plugins/blob/master/go-event-navigation/components/class-go-event-navigation.php#L610 ?